In Files

  • rubygems/dependency_resolver.rb

Parent

Methods

Class/Module Index [+]

Quicksearch

Gem::DependencyResolver::APISpecification

Represents a specification retrieved via the rubygems.org API. This is used to avoid having to load the full Specification object when all we need is the name, version, and dependencies.

Attributes

dependencies[R]
name[R]
version[R]

Public Class Methods

new(set, api_data) click to toggle source
 
               # File rubygems/dependency_resolver.rb, line 74
def initialize(set, api_data)
  @set = set
  @name = api_data[:name]
  @version = Gem::Version.new api_data[:number]
  @dependencies = api_data[:dependencies].map do |name, ver|
    Gem::Dependency.new name, ver.split(/\s*,\s*/)
  end
end
            

Public Instance Methods

full_name() click to toggle source
 
               # File rubygems/dependency_resolver.rb, line 93
def full_name
  "#{@name}-#{@version}"
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