Represents a specification retrieved via the Compact Index API.
This is used to avoid loading the full Specification object when all we need is the name, version, and dependencies.
Class Methods
dev
View on GitHub
# File tmp/rubies/ruby-master/lib/rubygems/resolver/api_specification.rb, line 14
def self.new(set, api_data)
cache_key = [set, api_data]
cache = @@cache[cache_key]
return cache if cache
@@cache[cache_key] = super
end
No documentation available
Instance Methods
#
dev
View on GitHub
# File tmp/rubies/ruby-master/lib/rubygems/resolver/api_specification.rb, line 51
def hash
@set.hash ^ @name.hash ^ @version.hash ^ @platform.hash
end
No documentation available