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
ish_lib_manager-0.0.1 test/dummy/vendor/bundle/ruby/2.3.0/gems/activesupport-4.2.6/lib/active_support/core_ext/struct.rb
activesupport-4.1.15 lib/active_support/core_ext/struct.rb
activesupport-4.2.6 lib/active_support/core_ext/struct.rb
activesupport-4.1.15.rc1 lib/active_support/core_ext/struct.rb
activesupport-4.2.6.rc1 lib/active_support/core_ext/struct.rb
activesupport-4.1.14.2 lib/active_support/core_ext/struct.rb
activesupport-4.2.5.2 lib/active_support/core_ext/struct.rb
activejob-lock-0.0.2 rails/activesupport/lib/active_support/core_ext/struct.rb
activesupport-4.2.5.1 lib/active_support/core_ext/struct.rb
activesupport-4.1.14.1 lib/active_support/core_ext/struct.rb
angular-rails4-templates-0.4.1 vendor/ruby/2.1.0/gems/activesupport-4.1.13/lib/active_support/core_ext/struct.rb
angular-rails4-templates-0.4.1 vendor/ruby/2.1.0/gems/activesupport-4.2.4/lib/active_support/core_ext/struct.rb
angular-rails4-templates-0.4.0 vendor/ruby/2.1.0/gems/activesupport-4.2.4/lib/active_support/core_ext/struct.rb
angular-rails4-templates-0.4.0 vendor/ruby/2.1.0/gems/activesupport-4.1.13/lib/active_support/core_ext/struct.rb
tdiary-4.2.1 vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.5/lib/active_support/core_ext/struct.rb
tdiary-4.2.1 vendor/bundle/ruby/2.3.0/gems/activesupport-4.2.5/lib/active_support/core_ext/struct.rb
angular-rails4-templates-0.3.0 vendor/ruby/2.1.0/gems/activesupport-4.2.4/lib/active_support/core_ext/struct.rb
angular-rails4-templates-0.3.0 vendor/ruby/2.1.0/gems/activesupport-4.1.13/lib/active_support/core_ext/struct.rb
activesupport-4.1.14 lib/active_support/core_ext/struct.rb
activesupport-4.2.5 lib/active_support/core_ext/struct.rb