Class: Hash

Inherits:
Object
  • Object
show all
Defined in:
lib/zbox/ext/hash.rb

Class Method Summary collapse

Class Method Details

.to_struct(name) ⇒ Object


3
4
5
# File 'lib/zbox/ext/hash.rb', line 3

def to_struct(name)
  Struct.new(name,*keys).new(*values)
end