Used Internally. Wraps a Dependency object to also track which spec contained the Dependency.
- E
- I
- M
- N
- R
| [R] | dependency | The wrapped Gem::Dependency |
| [R] | requester | The request for this dependency. |
Creates a new DependencyRequest for
dependency from requester. +requester may be nil
if the request came from a user.
Source: show
# File lib/rubygems/resolver/dependency_request.rb, line 21 def initialize dependency, requester @dependency = dependency @requester = requester end
Indicate that the request is for a gem explicitly requested by the user
Source: show
# File lib/rubygems/resolver/dependency_request.rb, line 54 def explicit? @requester.nil? end
Indicate that the request is for a gem requested as a dependency of another gem
Source: show
# File lib/rubygems/resolver/dependency_request.rb, line 62 def implicit? !explicit? end
Does this dependency request match spec
Source: show
# File lib/rubygems/resolver/dependency_request.rb, line 40 def matches_spec?(spec) @dependency.matches_spec? spec end
The name of the gem this dependency request is requesting.
Source: show
# File lib/rubygems/resolver/dependency_request.rb, line 47 def name @dependency.name end