method
move
v6.1.7.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 44
def move(t, a)
return [] if t.empty?
regexps = []
strings = []
t.each { |s|
if states = @regexp_states[s]
states.each { |re, v| regexps << v if re.match?(a) && !v.nil? }
end
if states = @string_states[s]
strings << states[a] unless states[a].nil?
end
}
strings.concat regexps
end