instance method
_empty_range?
Ruby on Rails 7.1.6
Since v7.0.10Signature
_empty_range?(b, e, excl)
No documentation comment.
Parameters
-
breq -
ereq -
exclreq
Source
# File activesupport/lib/active_support/core_ext/range/overlap.rb, line 31
def _empty_range?(b, e, excl)
return false if b.nil? || e.nil?
comp = b <=> e
comp.nil? || comp > 0 || (comp == 0 && excl)
end
Defined in activesupport/lib/active_support/core_ext/range/overlap.rb line 31
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in Range