123456789_123456789_123456789_123456789_123456789_

Class: Bundler::LazySpecification::Identifier

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

Instance Attribute Summary

Instance Method Summary

Instance Attribute Details

#dependencies (rw)

[ GitHub ]

  
# File 'lib/bundler/lazy_specification.rb', line 7

Identifier = Struct.new(:name, :version, :source, :platform, :dependencies)

#name (rw)

[ GitHub ]

  
# File 'lib/bundler/lazy_specification.rb', line 7

Identifier = Struct.new(:name, :version, :source, :platform, :dependencies)

#platform (rw)

[ GitHub ]

  
# File 'lib/bundler/lazy_specification.rb', line 7

Identifier = Struct.new(:name, :version, :source, :platform, :dependencies)

#source (rw)

[ GitHub ]

  
# File 'lib/bundler/lazy_specification.rb', line 7

Identifier = Struct.new(:name, :version, :source, :platform, :dependencies)

#version (rw)

[ GitHub ]

  
# File 'lib/bundler/lazy_specification.rb', line 7

Identifier = Struct.new(:name, :version, :source, :platform, :dependencies)

Instance Method Details

#<=>(other)

[ GitHub ]

  
# File 'lib/bundler/lazy_specification.rb', line 10

def <=>(other)
  return unless other.is_a?(Identifier)
  [name, version, platform_string] <=> [other.name, other.version, other.platform_string]
end

#platform_string (protected)

[ GitHub ]

  
# File 'lib/bundler/lazy_specification.rb', line 17

def platform_string
  platform_string = platform.to_s
  platform_string == Index::RUBY ? Index::NULL : platform_string
end