Sha256: 55f08042a4eab32ad0126542b40849208eae88f61c9dc625abe34b70b6453a7f

Contents?: true

Size: 198 Bytes

Versions: 19

Compression:

Stored size: 198 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

19 entries across 19 versions & 4 rubygems

Version Path
merb-core-1.1.3 spec10/public/webrat/test_app/gems/gems/extlib-0.9.8/lib/extlib/struct.rb
merb-core-1.1.2 spec10/public/webrat/test_app/gems/gems/extlib-0.9.8/lib/extlib/struct.rb
merb-core-1.1.1 spec10/public/webrat/test_app/gems/gems/extlib-0.9.8/lib/extlib/struct.rb
merb-core-1.1.0 spec10/public/webrat/test_app/gems/gems/extlib-0.9.8/lib/extlib/struct.rb
merb-core-1.1.0.rc1 spec10/public/webrat/test_app/gems/gems/extlib-0.9.8/lib/extlib/struct.rb
merb-core-1.1.0.pre spec10/public/webrat/test_app/gems/gems/extlib-0.9.8/lib/extlib/struct.rb
extlib-0.9.6 lib/extlib/struct.rb
extlib-0.9.4 lib/extlib/struct.rb
extlib-0.9.5 lib/extlib/struct.rb
extlib-0.9.2 lib/extlib/struct.rb
extlib-0.9.8 lib/extlib/struct.rb
extlib-0.9.3 lib/extlib/struct.rb
extlib-0.9.7 lib/extlib/struct.rb
mack-facets-0.8.2 lib/gems/extlib-0.9.8/lib/extlib/struct.rb
thorero-0.9.4.4 lib/extlib/struct.rb
thorero-0.9.4.3 lib/extlib/struct.rb
thorero-0.9.4.2 lib/extlib/struct.rb
thorero-0.9.4.1 lib/extlib/struct.rb
thorero-0.9.4 lib/extlib/struct.rb