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
.name(config_value_type) ⇒ Object
15 16 17 18 19 20 21 22 23 24 25 |
# File 'lib/hocon/config_value_type.rb', line 15 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 ConfigBugError, "Unrecognized value type '#{config_value_type}'" end end |