Class: Lotus::Utils::Hash
- Inherits:
-
Hash
- Object
- Hash
- Lotus::Utils::Hash
- Defined in:
- lib/lotus/utils/hash.rb
Overview
Hash on steroids
Instance Method Summary collapse
-
#initialize(hash = {}) ⇒ Hash
constructor
Initialize the hash.
-
#symbolize! ⇒ Hash
Convert in-place all the keys to Symbol instances, nested hashes are converted too.
Constructor Details
#initialize(hash = {}) ⇒ Hash
Initialize the hash
13 14 15 |
# File 'lib/lotus/utils/hash.rb', line 13 def initialize(hash = {}) merge! hash end |