Class | Gem::Dependency |
In: |
lib/rubygems/dependency.rb
|
Parent: | Object |
The Dependency class holds a Gem name and a Gem::Requirement.
TYPES | = | [ :development, :runtime, ] | Valid dependency types. |
name | [RW] | Dependency name or regular expression. |
prerelease | [W] | Allows you to force this dependency to be a prerelease. |
Constructs a dependency with name and requirements. The last argument can optionally be the dependency type, which defaults to :runtime.
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.