Module: Juggler::StateMachine::ClassMethods
- Defined in:
- lib/juggler/state_machine.rb
Instance Method Summary collapse
Instance Method Details
#state(name, callbacks = {}) ⇒ Object
76 77 78 79 |
# File 'lib/juggler/state_machine.rb', line 76 def state(name, callbacks = {}) @_states ||= {} @_states[name] = callbacks end |
#states ⇒ Object
72 73 74 |
# File 'lib/juggler/state_machine.rb', line 72 def states @_states end |