class Gem::DependencyResolver::IndexSpecification
Represents a possible Specification
object returned from IndexSet. Used to delay
needed to download full Specification
objects when only the name
and version
are
needed.
Attributes
name[R]
source[R]
version[R]
Public Class Methods
new(set, name, version, source, plat)
click to toggle source
# File lib/rubygems/dependency_resolver.rb, line 163 def initialize(set, name, version, source, plat) @set = set @name = name @version = version @source = source @platform = plat @spec = nil end
Public Instance Methods
dependencies()
click to toggle source
# File lib/rubygems/dependency_resolver.rb, line 183 def dependencies spec.dependencies end
full_name()
click to toggle source
# File lib/rubygems/dependency_resolver.rb, line 175 def full_name "#{@name}-#{@version}" end
spec()
click to toggle source
# File lib/rubygems/dependency_resolver.rb, line 179 def spec @spec ||= @set.load_spec(@name, @version, @source) end