Module: Gem::Requirement::OrderIndependentComparison

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

Instance Method Summary collapse

Instance Method Details

#==(other) ⇒ Object


173
174
175
176
177
178
179
180
181
# File 'lib/bundler/rubygems_ext.rb', line 173

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

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