Class: Hocon::Impl::ConfigNull

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

Constant Summary

Constants included from AbstractConfigValue

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

Instance Attribute Summary

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, 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) ⇒ ConfigNull

Returns a new instance of ConfigNull.



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

def initialize(origin)
  super(origin)
end

Instance Method Details

#new_copy(origin) ⇒ Object



29
30
31
# File 'lib/hocon/impl/config_null.rb', line 29

def new_copy(origin)
  self.class.new(origin)
end

#render_value_to_sb(sb, indent, at_root, options) ⇒ Object



25
26
27
# File 'lib/hocon/impl/config_null.rb', line 25

def render_value_to_sb(sb, indent, at_root, options)
  sb << "null"
end

#transform_to_stringObject



21
22
23
# File 'lib/hocon/impl/config_null.rb', line 21

def transform_to_string
  "null"
end

#unwrappedObject



17
18
19
# File 'lib/hocon/impl/config_null.rb', line 17

def unwrapped
  nil
end

#value_typeObject



13
14
15
# File 'lib/hocon/impl/config_null.rb', line 13

def value_type
  Hocon::ConfigValueType::NULL
end