Class: Struct

Inherits:
Object show all
Defined in:
lib/overload/struct.rb

Instance Method Summary collapse

Instance Method Details

#to_hashObject



2
3
4
# File 'lib/overload/struct.rb', line 2

def to_hash
  Hash[*members.zip(values).flatten]
end