Class: DTK::Common::SimpleHashObject

Inherits:
Hash
  • Object
show all
Defined in:
lib/hash_object.rb

Instance Method Summary collapse

Constructor Details

#initialize(initial_val = nil, &block) ⇒ SimpleHashObject

Returns a new instance of SimpleHashObject.



21
22
23
24
25
26
# File 'lib/hash_object.rb', line 21

def initialize(initial_val=nil,&block)
  block ? super(&block) : super()
  if initial_val
    replace(initial_val)
  end
end