class TokenType

Constants

CLOSE_CURLY
CLOSE_SQUARE
COLON
COMMA
COMMENT
EOF
EQUALS
IGNORED_WHITESPACE
NEWLINE
OPEN_CURLY
OPEN_SQUARE
PLUS_EQUALS
PROBLEM
START
SUBSTITUTION
UNQUOTED_TEXT
VALUE

Public Class Methods

name(token_type) click to toggle source
# File lib/hocon/impl/token_type.rb, line 23
def self.name(token_type)
  case token_type
    when START then "START"
    when EOF then "EOF"
    when COMMA then "COMMA"
    when EQUALS then "EQUALS"
    when COLON then "COLON"
    when OPEN_CURLY then "OPEN_CURLY"
    when CLOSE_CURLY then "CLOSE_CURLY"
    when OPEN_SQUARE then "OPEN_SQUARE"
    when CLOSE_SQUARE then "CLOSE_SQUARE"
    when VALUE then "VALUE"
    when NEWLINE then "NEWLINE"
    when UNQUOTED_TEXT then "UNQUOTED_TEXT"
    when SUBSTITUTION then "SUBSTITUTION"
    when PROBLEM then "PROBLEM"
    when COMMENT then "COMMENT"
    when PLUS_EQUALS then "PLUS_EQUALS"
    when IGNORED_WHITESPACE then "IGNORED_WHITESPACE"
    else raise ConfigBugOrBrokenError, "Unrecognized token type #{token_type}"
  end
end