Class: StrictHash

Inherits:
Hash
  • Object
show all
Defined in:
lib/verto/utils/strict_hash.rb

Instance Method Summary collapse

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