Class: Struct

Inherits:
Object
  • Object
show all
Defined in:
lib/hamster/core_ext/struct.rb

Instance Method Summary collapse

Instance Method Details

#to_hObject


5
6
7
# File 'lib/hamster/core_ext/struct.rb', line 5

def to_h
  Hash[each_pair.to_a]
end