Class: StrictHash
- Inherits:
-
Hash
- Object
- Hash
- StrictHash
- Defined in:
- lib/verto/utils/strict_hash.rb
Instance Method Summary collapse
-
#initialize(hash, default_proc: nil) ⇒ StrictHash
constructor
A new instance of StrictHash.
Constructor Details
#initialize(hash, default_proc: nil) ⇒ StrictHash
Returns a new instance of StrictHash.
4 5 6 7 8 |
# File 'lib/verto/utils/strict_hash.rb', line 4 def initialize(hash, default_proc: nil) super() self.default_proc = default_proc if default_proc merge!(hash) end |