Class: Convection::Model::Smash

Inherits:
Hash
  • Object
show all
Defined in:
lib/convection/model/template/mapping.rb

Overview

Hash with auto-generating sparse keys

Instance Method Summary collapse

Methods inherited from Hash

#diff, #properties

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