Method: EndState::StateMachineConfiguration#state_attribute
- Defined in:
- lib/end_state/state_machine_configuration.rb
#state_attribute(attribute) ⇒ Object
49 50 51 52 |
# File 'lib/end_state/state_machine_configuration.rb', line 49 def state_attribute(attribute) define_method(:state) { send(attribute.to_sym) } define_method(:state=) { |val| send("#{attribute}=".to_sym, val) } end |