# File bundler/rubygems_ext.rb, line 148def==(other)
returnunlessGem::Requirement===otherif_requirements_sorted?&&other._requirements_sorted?superelse_with_sorted_requirements==other._with_sorted_requirementsendend
Protected Instance Methods
_requirements_sorted?()click to toggle source
# File bundler/rubygems_ext.rb, line 160def_requirements_sorted?return@_are_requirements_sortedifdefined?(@_are_requirements_sorted)
strings = as_list@_are_requirements_sorted = strings==strings.sortend
_with_sorted_requirements()click to toggle source
# File bundler/rubygems_ext.rb, line 166def_with_sorted_requirements@_with_sorted_requirements||=_requirements_sorted??self:self.class.new(as_list.sort)
end