123456789_123456789_123456789_123456789_123456789_

Class: Gem::Source::ContentAddressableInfo

Relationships & Source Files
Super Chains via Extension / Inclusion / Inheritance
Class Chain:
self, Struct
Instance Chain:
self, Struct
Inherits: Struct
  • Object
Defined in: lib/rubygems/source.rb

Overview

Decoded compact index metadata for one content-addressable gem build: its #version, content-address #suffix, #ruby_abi, and #platform. Two infos are equal when their version and suffix match.

Instance Attribute Summary

Instance Method Summary

Instance Attribute Details

#platform (rw)

Decoded compact index metadata for one content-addressable gem build: its #version, content-address #suffix, #ruby_abi, and platform. Two infos are equal when their version and suffix match.

[ GitHub ]

  
# File 'lib/rubygems/source.rb', line 26

ContentAddressableInfo = Struct.new(:version, :suffix, :ruby_abi, :platform)

#ruby_abi (rw)

Decoded compact index metadata for one content-addressable gem build: its #version, content-address #suffix, ruby_abi, and #platform. Two infos are equal when their version and suffix match.

[ GitHub ]

  
# File 'lib/rubygems/source.rb', line 26

ContentAddressableInfo = Struct.new(:version, :suffix, :ruby_abi, :platform)

#suffix (rw)

Decoded compact index metadata for one content-addressable gem build: its #version, content-address suffix, #ruby_abi, and #platform. Two infos are equal when their version and suffix match.

[ GitHub ]

  
# File 'lib/rubygems/source.rb', line 26

ContentAddressableInfo = Struct.new(:version, :suffix, :ruby_abi, :platform)

#version (rw)

Decoded compact index metadata for one content-addressable gem build: its version, content-address #suffix, #ruby_abi, and #platform. Two infos are equal when their version and suffix match.

[ GitHub ]

  
# File 'lib/rubygems/source.rb', line 26

ContentAddressableInfo = Struct.new(:version, :suffix, :ruby_abi, :platform)

Instance Method Details

#==(other)

Alias for #eql?.

[ GitHub ]

  
# File 'lib/rubygems/source.rb', line 36

alias_method :==, :eql?

#eql?(other) ⇒ Boolean Also known as: #==

[ GitHub ]

  
# File 'lib/rubygems/source.rb', line 31

def eql?(other)
  other.is_a?(self.class) &&
    version == other.version &&
    suffix == other.suffix
end

#hash

[ GitHub ]

  
# File 'lib/rubygems/source.rb', line 27

def hash
  [version, suffix].hash
end