Sha256: 360afb57303892d0b053f21b3d37b67532ad29a1beafee13139b710bd6c1f120

Contents?: true

Size: 162 Bytes

Versions: 133

Compression:

Stored size: 162 Bytes

Contents

#  Backport of Struct#to_h from Ruby 2.0
class Struct # :nodoc:
  def to_h
    Hash[members.zip(values)]
  end
end unless Struct.instance_methods.include?(:to_h)

Version data entries

133 entries across 128 versions & 14 rubygems

Version Path
activesupport-4.2.11.3 lib/active_support/core_ext/struct.rb
activesupport-4.2.11.2 lib/active_support/core_ext/struct.rb
cocoapods-dependency-html-0.0.2 vendor/bundle/gems/activesupport-4.2.11.1/lib/active_support/core_ext/struct.rb
cocoapods-dependency-html-0.0.1 vendor/bundle/gems/activesupport-4.2.11.1/lib/active_support/core_ext/struct.rb
activesupport-4.2.11.1 lib/active_support/core_ext/struct.rb
activesupport-4.2.11 lib/active_support/core_ext/struct.rb
activesupport-4.2.10 lib/active_support/core_ext/struct.rb
activesupport-4.2.10.rc1 lib/active_support/core_ext/struct.rb
activesupport-4.2.9 lib/active_support/core_ext/struct.rb
activesupport-4.2.9.rc2 lib/active_support/core_ext/struct.rb
activesupport-4.2.9.rc1 lib/active_support/core_ext/struct.rb
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/gems/activesupport-4.2.8/lib/active_support/core_ext/struct.rb
happy_support-1.0.0 lib/happy_support/core_ext/struct.rb
activesupport-4.2.8 lib/active_support/core_ext/struct.rb
activesupport-4.2.8.rc1 lib/active_support/core_ext/struct.rb
activesupport-4.2.7.1 lib/active_support/core_ext/struct.rb
activesupport-4.2.7 lib/active_support/core_ext/struct.rb
activesupport-4.1.16 lib/active_support/core_ext/struct.rb
activesupport-4.1.16.rc1 lib/active_support/core_ext/struct.rb
activesupport-4.2.7.rc1 lib/active_support/core_ext/struct.rb