class Gem::DependencyResolver::DependencyRequest

Used Internally. Wraps a Depedency object to also track which spec contained the Dependency.

Attributes

dependency[R]
requester[R]

Public Class Methods

new(dep, act) click to toggle source
# File lib/rubygems/dependency_resolver.rb, line 328
def initialize(dep, act)
  @dependency = dep
  @requester = act
end

Public Instance Methods

==(other) click to toggle source
# File lib/rubygems/dependency_resolver.rb, line 347
def ==(other)
  case other
  when Dependency
    @dependency == other
  when DependencyRequest
    @dependency == other.dependency && @requester == other.requester
  else
    false
  end
end
matches_spec?(spec) click to toggle source
# File lib/rubygems/dependency_resolver.rb, line 339
def matches_spec?(spec)
  @dependency.matches_spec? spec
end
name() click to toggle source
# File lib/rubygems/dependency_resolver.rb, line 335
def name
  @dependency.name
end
to_s() click to toggle source
# File lib/rubygems/dependency_resolver.rb, line 343
def to_s
  @dependency.to_s
end