Class: InOrder::Aux::PositionBase
- Inherits:
-
Object
- Object
- InOrder::Aux::PositionBase
- Includes:
- GetElement
- Defined in:
- app/models/in_order/aux/position_base.rb
Instance Attribute Summary collapse
-
#adjacency ⇒ Object
Returns the value of attribute adjacency.
-
#marker ⇒ Object
Returns the value of attribute marker.
-
#target ⇒ Object
Returns the value of attribute target.
Instance Method Summary collapse
-
#initialize(target, marker, adjacency = nil) ⇒ PositionBase
constructor
A new instance of PositionBase.
Constructor Details
#initialize(target, marker, adjacency = nil) ⇒ PositionBase
Returns a new instance of PositionBase.
9 10 11 12 13 14 15 |
# File 'app/models/in_order/aux/position_base.rb', line 9 def initialize(target, marker, adjacency=nil) self.target = get_element target self.marker = get_element marker self.adjacency = adjacency.present? ? adjacency.to_sym : :after end |
Instance Attribute Details
#adjacency ⇒ Object
Returns the value of attribute adjacency.
7 8 9 |
# File 'app/models/in_order/aux/position_base.rb', line 7 def adjacency @adjacency end |
#marker ⇒ Object
Returns the value of attribute marker.
7 8 9 |
# File 'app/models/in_order/aux/position_base.rb', line 7 def marker @marker end |
#target ⇒ Object
Returns the value of attribute target.
7 8 9 |
# File 'app/models/in_order/aux/position_base.rb', line 7 def target @target end |