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



147
148
149
# File 'lib/transition_query.rb', line 147

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

#statesObject Also known as: targets, next_states



141
142
143
# File 'lib/transition_query.rb', line 141

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