In Files

  • rubygems/dependency_resolver/index_specification.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/index_specification.rb, line 15
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/index_specification.rb, line 25
def dependencies
  spec.dependencies
end
            
full_name() click to toggle source
 
               # File rubygems/dependency_resolver/index_specification.rb, line 29
def full_name
  "#{@name}-#{@version}"
end
            
spec() click to toggle source
 
               # File rubygems/dependency_resolver/index_specification.rb, line 48
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 see Improve the docs, or visit Documenting-ruby.org.

blog comments powered by Disqus