Module: Gem::Requirement::OrderIndependentComparison

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

Instance Method Summary collapse

Instance Method Details

#==(other) ⇒ Object



156
157
158
159
160
161
162
163
164
# File 'lib/bundler/rubygems_ext.rb', line 156

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

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