Class Gem::Dependency
In: lib/rubygems/dependency.rb
Parent: Object

The Dependency class holds a Gem name and a Gem::Requirement.

Methods

Constants

TYPES = [ :development, :runtime, ]   Valid dependency types.

Attributes

name  [RW]  Dependency name or regular expression.
prerelease  [W]  Allows you to force this dependency to be a prerelease.

Public Class methods

Constructs a dependency with name and requirements. The last argument can optionally be the dependency type, which defaults to :runtime.

Public Instance methods

Dependencies are ordered by name.

Uses this dependency as a pattern to compare to other. This dependency will match if the name matches the other‘s name, and other has only an equal version requirement that satisfies this dependency.

Merges the requirements of other into this dependency

Does this dependency require a prerelease?

What does this dependency require?

True if the dependency will not always match the latest version.

[Validate]