Class: ActionDispatch::Journey::NFA::Builder

Inherits:
Object
  • Object
show all
Defined in:
actionpack/lib/action_dispatch/journey/nfa/builder.rb

Overview

:nodoc:

Instance Method Summary collapse

Constructor Details

#initialize(ast) ⇒ Builder

Returns a new instance of Builder.



64
65
66
# File 'actionpack/lib/action_dispatch/journey/nfa/builder.rb', line 64

def initialize(ast)
  @ast = ast
end

Instance Method Details

#transition_tableObject



68
69
70
71
72
# File 'actionpack/lib/action_dispatch/journey/nfa/builder.rb', line 68

def transition_table
  tt = TransitionTable.new
  Visitor.new(tt).accept(@ast)
  tt
end