In Files

  • rubygems/resolver/api_specification.rb

Class/Module Index [+]



Represents a specification retrieved via the API.

This is used to avoid loading the full Specification object when all we need is the name, version, and dependencies.

Public Class Methods

new(set, api_data) click to toggle source

Creates an APISpecification for the given set from the api_data.

See for the format of the api_data.

               # File rubygems/resolver/api_specification.rb, line 16
def initialize(set, api_data)

  @set = set
  @name = api_data[:name]
  @version = api_data[:number]
  @platform = api_data[:platform]
  @dependencies = api_data[:dependencies].map do |name, ver| name, ver.split(/\s*,\s*/)

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