Class: Struct

Inherits:
Object show all
Defined in:
lib/data_mapper/support/struct.rb

Instance Method Summary collapse

Instance Method Details

#attributesObject



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