Class: Ergane::Hashall

Inherits:
Hash
  • Object
show all
Defined in:
lib/ergane/helpers/hashall.rb

Direct Known Subclasses

CommandDefinition

Instance Method Summary collapse

Constructor Details

#initialize(*args) ⇒ Hashall

Returns a new instance of Hashall.



3
4
5
6
# File 'lib/ergane/helpers/hashall.rb', line 3

def initialize(*args)
  super()
  self.default_proc = -> (h, k) { h[k] = self.class.new(*args) }
end