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

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

Overview

:nodoc:

Instance Method Summary collapse

Constructor Details

#initialize(ast) ⇒ Builder

Returns a new instance of Builder.



66
67
68
# File 'lib/action_dispatch/journey/nfa/builder.rb', line 66

def initialize(ast)
  @ast = ast
end

Instance Method Details

#transition_tableObject



70
71
72
73
74
# File 'lib/action_dispatch/journey/nfa/builder.rb', line 70

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