Class: OpenConfig::Base

Inherits:
Node
  • Object
show all
Defined in:
lib/open_config/files/base.rb

Direct Known Subclasses

JSON, YAML

Instance Method Summary collapse

Methods inherited from Node

#fetch, #pretty_print, #to_h

Constructor Details

#initialize(path) ⇒ Base

Returns a new instance of Base.



7
8
9
10
# File 'lib/open_config/files/base.rb', line 7

def initialize(path)
  @path = path
  super(build_config)
end

Instance Method Details

#==(other) ⇒ Object



12
13
14
15
# File 'lib/open_config/files/base.rb', line 12

def ==(other)
  return false unless other.kind_of?(OpenConfig::Base)
  table! == other.table!
end