Class: Erlash::MainHash

Inherits:
Hash
  • Object
show all
Defined in:
lib/erlash/main_hash.rb

Class Method Summary collapse

Class Method Details

.build(hash) ⇒ Object



3
4
5
6
7
# File 'lib/erlash/main_hash.rb', line 3

def self.build(hash)
  hash.each_with_object(self.new) do |(k, v), o|
    o[k] = v
  end
end