module Hocon::Impl::AbstractConfigNode

Public Instance Methods

==(other) click to toggle source
# File lib/hocon/impl/abstract_config_node.rb, line 21
def ==(other)
  other.is_a?(Hocon::Impl::AbstractConfigNode) &&
      (render == other.render)
end
hash() click to toggle source
# File lib/hocon/impl/abstract_config_node.rb, line 26
def hash
  render.hash
end
render() click to toggle source
# File lib/hocon/impl/abstract_config_node.rb, line 13
def render
  orig_text = StringIO.new
  tokens.each do |t|
    orig_text << t.token_text
  end
  orig_text.string
end
tokens() click to toggle source
# File lib/hocon/impl/abstract_config_node.rb, line 9
def tokens
  raise Hocon::ConfigError::ConfigBugOrBrokenError, "subclasses of AbstractConfigNode should override `tokens` (#{self.class})"
end