Class: Hash
- Inherits:
-
Object
- Object
- Hash
- Defined in:
- lib/osmn/hash.rb
Instance Method Summary collapse
Instance Method Details
#to_struct(name) ⇒ Object
2 3 4 |
# File 'lib/osmn/hash.rb', line 2 def to_struct(name) Struct.new(name, *keys).new(*values) end |