Method: Struct#to_h

Defined in:
lib/core/facets/to_hash.rb

#to_hObject

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



329
330
331
332
333
# File 'lib/core/facets/to_hash.rb', line 329

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