module Hocon::ConfigValueType

The type of a configuration value (following the <a href=“JSONjson.org”>JSON> type schema).

Constants

BOOLEAN
LIST
NULL
NUMBER
OBJECT
STRING

Private Class Methods

name(config_value_type) click to toggle source
# File lib/hocon/config_value_type.rb, line 17
def self.name(config_value_type)
  case config_value_type
    when OBJECT then "OBJECT"
    when LIST then "LIST"
    when NUMBER then "NUMBER"
    when BOOLEAN then "BOOLEAN"
    when NULL then "NULL"
    when STRING then "STRING"
    else raise Hocon::ConfigError::ConfigBugOrBrokenError, "Unrecognized value type '#{config_value_type}'"
  end
end