Method: EnumStateMachine::Path#from_states
- Defined in:
- lib/enum_state_machine/path.rb
#from_states ⇒ Object
Lists all of the from states that can be reached through this path.
For example,
path.to_states # => [:parked, :idling, :first_gear, ...]
46 47 48 |
# File 'lib/enum_state_machine/path.rb', line 46 def from_states map {|transition| transition.from_name}.uniq end |