Class: ActionDispatch::Journey::Parser
- Inherits:
-
Object
- Object
- ActionDispatch::Journey::Parser
- Includes:
- Nodes
- Defined in:
- lib/action_dispatch/journey/parser.rb
Overview
:nodoc:
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize ⇒ Parser
constructor
A new instance of Parser.
- #parse(string) ⇒ Object
Constructor Details
Class Method Details
.parse(string) ⇒ Object
11 12 13 |
# File 'lib/action_dispatch/journey/parser.rb', line 11 def self.parse(string) new.parse string end |
Instance Method Details
#parse(string) ⇒ Object
20 21 22 23 24 |
# File 'lib/action_dispatch/journey/parser.rb', line 20 def parse(string) @scanner.scan_setup(string) advance_token do_parse end |