Module: SimpleState::Mixins::Instance
- Defined in:
- lib/simple_state/mixins.rb
Overview
Defines instance methods which are mixed in to a class when state_machine is called.
Instance Method Summary collapse
-
#initialize(*args, &blk) ⇒ Object
Set the initial value for the state machine after calling the original initialize method.
Instance Method Details
#initialize(*args, &blk) ⇒ Object
Set the initial value for the state machine after calling the original initialize method.
59 60 61 62 |
# File 'lib/simple_state/mixins.rb', line 59 def initialize(*args, &blk) super self.state = self.class.initial_state end |