==(other)
click to toggle source
def ==(other)
return false if other.class != self.class
dep == other.dep && __platform == other.__platform
end
eql?(other)
click to toggle source
hash()
click to toggle source
def hash
@hash ||= [dep, __platform].hash
end
name()
click to toggle source
requirement()
click to toggle source
def requirement
@dep.requirement
end
to_s()
click to toggle source
def to_s
s = name.dup
s << " (#{requirement})" unless requirement == Gem::Requirement.default
s << " #{__platform}" unless __platform == Gem::Platform::RUBY
s
end
type()
click to toggle source