method
move
v4.2.7 -
Show latest stable
- Class:
ActionDispatch::Journey::GTG::TransitionTable
move(t, a)public
No documentation available.
# File actionpack/lib/action_dispatch/journey/gtg/transition_table.rb, line 42
def move(t, a)
return [] if t.empty?
regexps = []
t.map { |s|
if states = @regexp_states[s]
regexps.concat states.map { |re, v| re === a ? v : nil }
end
if states = @string_states[s]
states[a]
end
}.compact.concat regexps
end