Method: Mail::IndifferentHash#initialize
- Defined in:
- lib/mail/indifferent_hash.rb
#initialize(constructor = {}) ⇒ IndifferentHash
Returns a new instance of IndifferentHash.
10 11 12 13 14 15 16 17 |
# File 'lib/mail/indifferent_hash.rb', line 10 def initialize(constructor = {}) if constructor.is_a?(Hash) super() update(constructor) else super(constructor) end end |