Method: Bundler::PubGrub::VersionRange#strictly_lower?

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

#strictly_lower?(other) ⇒ Boolean

Returns:

  • (Boolean)
[View source]

175
176
177
178
179
180
181
182
183
184
185
186
# File 'lib/bundler/vendor/pub_grub/lib/pub_grub/version_range.rb', line 175

def strictly_lower?(other)
  return false if !max || !other.min

  case max <=> other.min
  when 0
    !include_max || !other.include_min
  when -1
    true
  when 1
    false
  end
end