Class: Prosereflect::Transform::MarkStep
- Defined in:
- lib/prosereflect/transform/mark_step.rb
Overview
Base class for mark-related steps
Direct Known Subclasses
Instance Attribute Summary collapse
-
#from ⇒ Object
readonly
Returns the value of attribute from.
-
#mark ⇒ Object
readonly
Returns the value of attribute mark.
-
#to ⇒ Object
readonly
Returns the value of attribute to.
Instance Method Summary collapse
- #get_map ⇒ Object
-
#initialize(from, to, mark) ⇒ MarkStep
constructor
A new instance of MarkStep.
Methods inherited from Step
#apply, from_json, #invert, #merge, #pos, #step_type, #to_json
Constructor Details
#initialize(from, to, mark) ⇒ MarkStep
Returns a new instance of MarkStep.
12 13 14 15 16 17 |
# File 'lib/prosereflect/transform/mark_step.rb', line 12 def initialize(from, to, mark) super() @from = from @to = to @mark = mark end |
Instance Attribute Details
#from ⇒ Object (readonly)
Returns the value of attribute from.
10 11 12 |
# File 'lib/prosereflect/transform/mark_step.rb', line 10 def from @from end |
#mark ⇒ Object (readonly)
Returns the value of attribute mark.
10 11 12 |
# File 'lib/prosereflect/transform/mark_step.rb', line 10 def mark @mark end |
#to ⇒ Object (readonly)
Returns the value of attribute to.
10 11 12 |
# File 'lib/prosereflect/transform/mark_step.rb', line 10 def to @to end |