Module: Hocon::ConfigValueType

Defined in:
lib/hocon/config_value_type.rb

Overview

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

Constant Summary collapse

OBJECT =
0
LIST =
1
NUMBER =
2
BOOLEAN =
3
NULL =
4
STRING =
5

Class Method Summary collapse

Class Method Details

.value_type_name(config_value_type) ⇒ Object



18
19
20
21
22
23
24
25
26
27
28
# File 'lib/hocon/config_value_type.rb', line 18

def self.value_type_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