Class: NewRelic::Agent::Configuration::DottedHash

Inherits:
Hash
  • Object
show all
Defined in:
lib/new_relic/agent/configuration.rb

Instance Method Summary collapse

Constructor Details

#initialize(hash) ⇒ DottedHash

Returns a new instance of DottedHash.



20
21
22
23
24
25
# File 'lib/new_relic/agent/configuration.rb', line 20

def initialize(hash)
  self.merge!(dot_flattened(hash))
  keys.each do |key|
    self[(key.to_sym rescue key) || key] = delete(key)
  end
end

Instance Method Details

#inspectObject



27
28
29
# File 'lib/new_relic/agent/configuration.rb', line 27

def inspect
  "#<#{self.class.name}:#{object_id} #{super}>"
end