Module: Hocon::Impl::ReplaceableMergeStack

Includes:
Container
Included in:
ConfigDelayedMerge, ConfigDelayedMergeObject
Defined in:
lib/hocon/impl/replaceable_merge_stack.rb

Overview

Implemented by a merge stack (ConfigDelayedMerge, ConfigDelayedMergeObject) that replaces itself during substitution resolution in order to implement “look backwards only” semantics.

Instance Method Summary collapse

Methods included from Container

#has_descendant?, #replace_child

Methods included from ConfigValue

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

Methods included from ConfigMergeable

#with_fallback

Instance Method Details

#make_replacement(context, skipping) ⇒ Object

Make a replacement for this object skipping the given number of elements which are lower in merge priority.



19
20
21
# File 'lib/hocon/impl/replaceable_merge_stack.rb', line 19

def make_replacement(context, skipping)
  raise Hocon::ConfigError::ConfigBugOrBrokenError, "subclasses of `ReplaceableMergeStack` must implement `make_replacement` (#{self.class})"
end