class Hash
@see ::Hash
Public Instance Methods
to_struct()
click to toggle source
Returns a struct representation of the receiver. @return [Struct] struct
# File lib/aladdin/support/core_ext/hash.rb, line 7 def to_struct Struct.new( *(k = keys) ).new( *values_at( *k ) ) end