Class: Struct

Inherits:
Object show all
Defined in:
lib/libaaron.rb

Instance Method Summary collapse

Instance Method Details

#to_hashObject Also known as: to_h, to_hsh



135
136
137
138
139
140
141
# File 'lib/libaaron.rb', line 135

def to_hash
  hash = Hash.new
  for key in self.members
    hash[key] = self[key]
  end
  return hash
end