method

parse_terminal

parse_terminal()
private

No documentation available.

# File actionpack/lib/action_dispatch/journey/parser.rb, line 86
        def parse_terminal
          node = case @next_token
          when :SYMBOL
            Symbol.new(@scanner.last_string)
          when :LITERAL
            Literal.new(@scanner.last_literal)
          when :SLASH
            Slash.new("/")
          when :DOT
            Dot.new(".")
          end

          advance_token
          node
        end