In Files

  • rubygems/dependency_resolver.rb

Class/Module Index [+]

Quicksearch

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 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 rubygems/dependency_resolver.rb, line 183
def dependencies
  spec.dependencies
end
            
full_name() click to toggle source
 
               # File rubygems/dependency_resolver.rb, line 175
def full_name
  "#{@name}-#{@version}"
end
            
spec() click to toggle source
 
               # File rubygems/dependency_resolver.rb, line 179
def spec
  @spec ||= @set.load_spec(@name, @version, @source)
end
            

Commenting is here to help enhance the documentation. For example, code samples, or clarification of the documentation.

If you have questions about Ruby or the documentation, please post to one of the Ruby mailing lists. You will get better, faster, help that way.

If you wish to post a correction of the docs, please do so, but also file bug report so that it can be corrected for the next release. Thank you.

If you want to help improve the Ruby documentation, please visit Documenting-ruby.org.

blog comments powered by Disqus