Class: Convection::Model::Smash
- Defined in:
- lib/convection/model/template/mapping.rb
Overview
Hash with auto-generating sparse keys
Instance Method Summary collapse
-
#initialize(*args) ⇒ Smash
constructor
A new instance of Smash.
Methods inherited from Hash
Constructor Details
#initialize(*args) ⇒ Smash
Returns a new instance of Smash
9 10 11 12 13 |
# File 'lib/convection/model/template/mapping.rb', line 9 def initialize(*args) super do |hash, key| hash[key] = Smash.new end end |