Module: StateFu::TransitionQuery::Result
- Defined in:
- lib/transition_query.rb
Overview
extend result with this to provide a few conveniences
Instance Method Summary collapse
- #events ⇒ Object
- #states ⇒ Object (also: #targets, #next_states)
Instance Method Details
#events ⇒ Object
139 140 141 |
# File 'lib/transition_query.rb', line 139 def events map(&:event).uniq.extend EventArray end |
#states ⇒ Object Also known as: targets, next_states
133 134 135 |
# File 'lib/transition_query.rb', line 133 def states map(&:target).uniq.extend StateArray end |