Method: Jsm::Client::InstanceMethods#current_state
- Defined in:
- lib/jsm/client.rb
#current_state ⇒ Object
able to get current state from here instead check from the targeted attribute
19 20 21 22 |
# File 'lib/jsm/client.rb', line 19 def current_state attr_state = state_machine.attribute_name instance_variable_get("@#{attr_state}".to_sym) end |