Class: Hocon::Impl::ConfigBoolean

Inherits:
Object
  • Object
show all
Includes:
AbstractConfigValue
Defined in:
lib/hocon/impl/config_boolean.rb

Constant Summary

Constants included from AbstractConfigValue

AbstractConfigValue::ConfigBugOrBrokenError, AbstractConfigValue::ConfigImplUtil, AbstractConfigValue::ResolveStatus

Instance Attribute Summary collapse

Attributes included from AbstractConfigValue

#origin

Instance Method Summary collapse

Methods included from AbstractConfigValue

#==, #at_key, #at_key_with_origin, #at_path, #at_path_with_origin, #can_equal, #construct_delayed_merge, #delay_merge, has_descendant_in_list?, #hash, #ignores_fallbacks?, indent, #inspect, #merged_stack_with_non_object, #merged_stack_with_object, #merged_stack_with_the_unmergeable, #merged_with_non_object, #merged_with_object, #merged_with_the_unmergeable, #relativized, #render, #render_to_sb, #render_value_to_sb, replace_child_in_list, #require_not_ignoring_fallbacks, #resolve_status, #resolve_substitutions, #to_fallback_value, #to_s, #with_fallback, #with_fallbacks_ignored, #with_origin

Methods included from ConfigValue

#at_key, #at_path, #origin, #render, #with_fallback, #with_origin

Methods included from ConfigMergeable

#with_fallback

Constructor Details

#initialize(origin, value) ⇒ ConfigBoolean

Returns a new instance of ConfigBoolean.



9
10
11
12
# File 'lib/hocon/impl/config_boolean.rb', line 9

def initialize(origin, value)
  super(origin)
  @value = value
end

Instance Attribute Details

#valueObject (readonly)

Returns the value of attribute value.



14
15
16
# File 'lib/hocon/impl/config_boolean.rb', line 14

def value
  @value
end

Instance Method Details

#new_copy(origin) ⇒ Object



28
29
30
# File 'lib/hocon/impl/config_boolean.rb', line 28

def new_copy(origin)
  Hocon::Impl::ConfigBoolean.new(origin, @value)
end

#transform_to_stringObject



24
25
26
# File 'lib/hocon/impl/config_boolean.rb', line 24

def transform_to_string
  @value.to_s
end

#unwrappedObject



20
21
22
# File 'lib/hocon/impl/config_boolean.rb', line 20

def unwrapped
  @value
end

#value_typeObject



16
17
18
# File 'lib/hocon/impl/config_boolean.rb', line 16

def value_type
  Hocon::ConfigValueType::BOOLEAN
end