Class: Struct

Inherits:
Object show all
Defined in:
lib/malt/core_ext.rb

Instance Method Summary collapse

Instance Method Details

#to_hObject


85
86
87
# File 'lib/malt/core_ext.rb', line 85

def to_h
  Hash[members.zip(values)]
end

#to_structObject


81
82
83
# File 'lib/malt/core_ext.rb', line 81

def to_struct
  self
end