File: unmergeable.rb

package info (click to toggle)
ruby-hocon 1.4.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 768 kB
  • sloc: ruby: 7,903; makefile: 4
file content (17 lines) | stat: -rw-r--r-- 548 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# encoding: utf-8

require_relative '../../hocon/impl'
require_relative '../../hocon/config_error'


#
# Interface that tags a ConfigValue that is not mergeable until after
# substitutions are resolved. Basically these are special ConfigValue that
# never appear in a resolved tree, like {@link ConfigSubstitution} and
# {@link ConfigDelayedMerge}.
#
module Hocon::Impl::Unmergeable
  def unmerged_values
    raise Hocon::ConfigError::ConfigBugOrBrokenError, "subclasses of `Unmergeable` must implement `unmerged_values` (#{self.class})"
  end
end