Sha256: 8f5aa9776e6ff7a86753ea0b52bede05f62a0e88d81a1a503f6ac30c5748d481

Contents?: true

Size: 252 Bytes

Versions: 12

Compression:

Stored size: 252 Bytes

Contents

class Struct

  # 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.

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

end

Version data entries

12 entries across 11 versions & 2 rubygems

Version Path
facets-glimmer-3.2.0 lib/core/facets/struct/attributes.rb
facets-3.1.0 lib/core/facets/struct/attributes.rb
facets-3.0.0 lib/core/facets/struct/attributes.rb
facets-2.9.3 lib/core/facets/struct/attributes.rb
facets-2.9.2 lib/core/facets/struct/attributes.rb
facets-2.9.2 src/core/facets/struct/attributes.rb
facets-2.9.1 lib/core/facets/struct/attributes.rb
facets-2.9.0 lib/core/facets/struct/attributes.rb
facets-2.9.0.pre.2 lib/core/facets/struct/attributes.rb
facets-2.9.0.pre.1 lib/core/facets/struct/attributes.rb
facets-2.8.4 lib/core/facets/struct/attributes.rb
facets-2.8.3 lib/core/facets/struct/attributes.rb