Module: HybridStateModel::ClassMethods
- Defined in:
- lib/hybrid_state_model.rb
Instance Method Summary collapse
Instance Method Details
#hybrid_state(&block) ⇒ Object
21 22 23 24 25 |
# File 'lib/hybrid_state_model.rb', line 21 def hybrid_state(&block) @state_machine = StateMachine.new(self) @state_machine.instance_eval(&block) @state_machine.setup! end |
#state_machine ⇒ Object
27 28 29 |
# File 'lib/hybrid_state_model.rb', line 27 def state_machine @state_machine end |