Keep in mind (added this an a "okish" example):
foo: bar.. replaces 'foo >= ?', barfoo: bar... also replaces 'foo >= ?', bar (not 'foo' > ?', bar)
foo: ..bar replaces 'foo <= ?', barfoo: ...bar replaces 'foo < ?', bar
But there is nothing that would replace a set of conditions where one is inclusive, and the other is exclusive:
'foo >= ? AND foo < ?'
Related
rubocop-rails
ticket.Keep in mind (added this an a "okish" example):
foo: bar..
replaces'foo >= ?', bar
foo: bar...
also replaces'foo >= ?', bar
(not'foo' > ?', bar
)foo: ..bar
replaces'foo <= ?', bar
foo: ...bar
replaces'foo < ?', bar
But there is nothing that would replace a set of conditions where one is inclusive, and the other is exclusive:'foo >= ? AND foo < ?'
Real-world examples (gathered from
real-world-rspec
):Specifically open ranges: