Class: FSM::State

Inherits:
Object
  • Object
show all
Defined in:
lib/netutils/fsm.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#cbObject (readonly)

Returns the value of attribute cb.



3
4
5
# File 'lib/netutils/fsm.rb', line 3

def cb
  @cb
end