1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/actionpack/lib/action_dispatch/journey/parser_extras.rb
Rafael Mendonça França 3b50fb6b2f
Remove all Journey constant from public API
There were never public API only there by mistake.

[ci skip]
2016-10-26 15:25:45 -02:00

29 lines
511 B
Ruby

require "action_dispatch/journey/scanner"
require "action_dispatch/journey/nodes/node"
module ActionDispatch
# :stopdoc:
module Journey
class Parser < Racc::Parser
include Journey::Nodes
def self.parse(string)
new.parse string
end
def initialize
@scanner = Scanner.new
end
def parse(string)
@scanner.scan_setup(string)
do_parse
end
def next_token
@scanner.next_token
end
end
end
# :startdoc:
end