Module: Hocon::ConfigMergeable
- Included in:
- ConfigValue, Impl::SimpleConfig
- Defined in:
- lib/hocon/config_mergeable.rb
Overview
Marker for types whose instances can be merged, that is Config and ConfigValue. Instances of Config and ConfigValue can be combined into a single new instance using the ConfigMergeable#withFallback withFallback() method.
<p> Do not implement this interface; it should only be implemented by the config library. Arbitrary implementations will not work because the library internals assume a specific concrete implementation. Also, this interface is likely to grow new methods over time, so third-party implementations will break.
Instance Method Summary collapse
Instance Method Details
#with_fallback(other) ⇒ Object
used)
71 72 73 |
# File 'lib/hocon/config_mergeable.rb', line 71 def with_fallback(other) raise Hocon::ConfigError::ConfigBugOrBrokenError, "subclasses of `ConfigMergeable` must implement `with_fallback` (#{self.class})" end |