Method: Struct#attributes

Defined in:
lib/core/facets/struct/attributes.rb

#attributesObject

Returns a hash containing the names and values for all instance settings in the Struct.

This will eventually be deprecated in favor of #to_h.



8
9
10
11
12
# File 'lib/core/facets/struct/attributes.rb', line 8

def attributes
  h = {}
  each_pair { |k,v| h[k] = v }
  h
end