Class: Struct
Overview
#
Struct modifications can be stored here.
#
Direct Known Subclasses
Instance Method Summary collapse
-
#to_hash ⇒ Object
# === to_hash.
Instance Method Details
#to_hash ⇒ Object
16 17 18 19 20 |
# File 'lib/roebe/core/struct.rb', line 16 def to_hash members.zip(values).inject({ }) {|hash, (key, value)| hash.merge(key => value) } end |