Class: Struct

Inherits:
Object
  • Object
show all
Defined in:
lib/lesmok/liquidations.rb

Instance Method Summary collapse

Instance Method Details

#to_liquidObject



14
15
16
17
18
19
20
# File 'lib/lesmok/liquidations.rb', line 14

def to_liquid
  hash = Hash.new
  self.members.each do |k|
    hash[k.to_s] = self[k]
  end
  hash
end