Module: Gem::Requirement::OrderIndependentComparison

Included in:
Gem::Requirement
Defined in:
lib/bundler/rubygems_ext.rb

Instance Method Summary collapse

Instance Method Details

#==(other) ⇒ Object



140
141
142
143
144
145
146
147
148
# File 'lib/bundler/rubygems_ext.rb', line 140

def ==(other)
  return unless Gem::Requirement === other

  if _requirements_sorted? && other._requirements_sorted?
    super
  else
    _with_sorted_requirements == other._with_sorted_requirements
  end
end