Class: Roundabout::Recorder

Inherits:
Object
  • Object
show all
Defined in:
lib/roundabout/recorder.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeRecorder

Returns a new instance of Recorder.



7
8
9
# File 'lib/roundabout/recorder.rb', line 7

def initialize
  @transitions = Set.new
end

Instance Attribute Details

#transitionsObject (readonly)

Returns the value of attribute transitions.



5
6
7
# File 'lib/roundabout/recorder.rb', line 5

def transitions
  @transitions
end

Instance Method Details

#record_transition(from, to, method, type) ⇒ Object



11
12
13
# File 'lib/roundabout/recorder.rb', line 11

def record_transition(from, to, method, type)
  @transitions << {from: from, to: to, method: method, type: type}
end