lib/rubygems/dependency.rb
##
# Does this dependency match +spec+?
#
# NOTE:  This is not a convenience method.  Unlike #match? this method
# returns true when +spec+ is a prerelease version even if this dependency
# is not a prerelease dependency.
Does this dependency match +spec+.
NOTE:  This is not a convenience method.  Unlike #match. this method
returns true when +spec+ is a prerelease version even if this dependency
is not a prerelease dependency.
Does this dependency match + spec + . NOTE : This is not a convenience method . Unlike #match . this method returns true when + spec + is a prerelease version even if this dependency is not a prerelease dependency .
def matches_spec?(spec)
    return false unless name === spec.name
    return true  if requirement.none?
    requirement.satisfied_by?(spec.version)
  end
def matches_spec? ( spec ) return false unless name === spec . name return true if requirement . none? requirement . satisfied_by? ( spec . version ) end
Does this dependency match +spec+?
Does this dependency match + spec + ?
spec
<not_specific>