Method: StateMachine::Path#to_name
- Defined in:
- lib/state_machine/path.rb
#to_name ⇒ Object
The end state name for this path. If a target state was specified for the path, then that will be returned if the path is complete.
52 53 54 |
# File 'lib/state_machine/path.rb', line 52 def to_name last && last.to_name end |