Class: Struct
Instance Method Summary collapse
Instance Method Details
#to_hash ⇒ Object
3 4 5 6 7 8 9 |
# File 'lib/lh/core_extensions/struct/to_hash.rb', line 3 def to_hash hash = {} self.each_pair do |key, value| hash[key] = value end hash end |