Class: Struct
Direct Known Subclasses
Instance Method Summary collapse
Instance Method Details
#attributes ⇒ Object
2 3 4 5 6 |
# File 'lib/data_mapper/support/struct.rb', line 2 def attributes h = {} each_pair { |k,v| h[k] = v } h end |