Class: DTK::Common::SimpleHashObject
- Inherits:
-
Hash
- Object
- Hash
- DTK::Common::SimpleHashObject
- Defined in:
- lib/hash_object.rb
Instance Method Summary collapse
-
#initialize(initial_val = nil, &block) ⇒ SimpleHashObject
constructor
A new instance of SimpleHashObject.
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 |