Class: Roundabout::Recorder
- Inherits:
-
Object
- Object
- Roundabout::Recorder
- Defined in:
- lib/roundabout/recorder.rb
Instance Attribute Summary collapse
-
#transitions ⇒ Object
readonly
Returns the value of attribute transitions.
Instance Method Summary collapse
-
#initialize ⇒ Recorder
constructor
A new instance of Recorder.
- #record_transition(from, to, method, type) ⇒ Object
Constructor Details
#initialize ⇒ Recorder
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
#transitions ⇒ Object (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 |