method

parse_terminal

rails latest stable - Class: ActionDispatch::Journey::Parser

Method not available on this version

This method is only available on newer versions. The first available version (v8.0.0) is shown here.

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