Class: FSM::State
- Inherits:
-
Object
- Object
- FSM::State
- Defined in:
- lib/netutils/fsm.rb
Instance Attribute Summary collapse
-
#cb ⇒ Object
readonly
Returns the value of attribute cb.
Instance Method Summary collapse
-
#initialize(cb) ⇒ State
constructor
A new instance of State.
Constructor Details
#initialize(cb) ⇒ State
Returns a new instance of State.
5 6 7 |
# File 'lib/netutils/fsm.rb', line 5 def initialize(cb) @cb = cb end |
Instance Attribute Details
#cb ⇒ Object (readonly)
Returns the value of attribute cb.
3 4 5 |
# File 'lib/netutils/fsm.rb', line 3 def cb @cb end |