Module: StateFu::TransitionQuery::Result

Defined in:
lib/transition_query.rb

Overview

extend result with this to provide a few conveniences

Instance Method Summary collapse

Instance Method Details

#eventsObject



139
140
141
# File 'lib/transition_query.rb', line 139

def events
  map(&:event).uniq.extend EventArray
end

#statesObject Also known as: targets, next_states



133
134
135
# File 'lib/transition_query.rb', line 133

def states
  map(&:target).uniq.extend StateArray
end