Method: Bundler::PubGrub::VersionConstraint#relation

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

#relation(other) ⇒ Object

[View source]

88
89
90
91
92
93
94
95
96
# File 'lib/bundler/vendor/pub_grub/lib/pub_grub/version_constraint.rb', line 88

def relation(other)
  if subset?(other)
    :subset
  elsif overlap?(other)
    :overlap
  else
    :disjoint
  end
end