Class: NewRelic::Agent::Configuration::DottedHash
- Inherits:
-
Hash
- Object
- Hash
- NewRelic::Agent::Configuration::DottedHash
- Defined in:
- lib/new_relic/agent/configuration.rb
Direct Known Subclasses
Instance Method Summary collapse
-
#initialize(hash) ⇒ DottedHash
constructor
A new instance of DottedHash.
- #inspect ⇒ Object
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
#inspect ⇒ Object
27 28 29 |
# File 'lib/new_relic/agent/configuration.rb', line 27 def inspect "#<#{self.class.name}:#{object_id} #{super}>" end |