Class: Prosereflect::Transform::MarkStep

Inherits:
Step
  • Object
show all
Defined in:
lib/prosereflect/transform/mark_step.rb

Overview

Base class for mark-related steps

Direct Known Subclasses

AddMarkStep, RemoveMarkStep

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#fromObject (readonly)

Returns the value of attribute from.



10
11
12
# File 'lib/prosereflect/transform/mark_step.rb', line 10

def from
  @from
end

#markObject (readonly)

Returns the value of attribute mark.



10
11
12
# File 'lib/prosereflect/transform/mark_step.rb', line 10

def mark
  @mark
end

#toObject (readonly)

Returns the value of attribute to.



10
11
12
# File 'lib/prosereflect/transform/mark_step.rb', line 10

def to
  @to
end

Instance Method Details

#get_mapObject



19
20
21
# File 'lib/prosereflect/transform/mark_step.rb', line 19

def get_map
  StepMap.new
end