Method: Bundler::PubGrub::VersionRange#intersects?

Defined in:
lib/bundler/vendor/pub_grub/lib/pub_grub/version_range.rb

#intersects?(other) ⇒ Boolean Also known as: allows_any?

Returns:

  • (Boolean)
[View source]

192
193
194
195
196
# File 'lib/bundler/vendor/pub_grub/lib/pub_grub/version_range.rb', line 192

def intersects?(other)
  return false if other.empty?
  return other.intersects?(self) if other.is_a?(VersionUnion)
  !strictly_lower?(other) && !strictly_higher?(other)
end