Sha256: 36040587ea001ce8af8f73fda7cd93f83bc1adf4960d022e31737e2414218e06

Contents?: true

Size: 201 Bytes

Versions: 8

Compression:

Stored size: 201 Bytes

Contents

class Struct

  # Returns a hash containing the names and values for all instance variables in the Struct.
  def attributes
    h = {}
    each_pair { |k,v| h[k] = v }
    h
  end

end # class Struct

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
facets-2.8.2 lib/core/facets/struct/attributes.rb
facets-2.8.1 lib/core/facets/struct/attributes.rb
facets-2.8.0 lib/core/facets/struct/attributes.rb
facets-2.7.0 lib/core/facets/struct/attributes.rb
facets-2.6.0 lib/core/facets/struct/attributes.rb
facets-2.5.0 lib/core/facets/struct/attributes.rb
facets-2.5.1 lib/core/facets/struct/attributes.rb
facets-2.5.2 lib/core/facets/struct/attributes.rb