# File activesupport/lib/active_support/core_ext/range/include_range.rb, line 12def include_with_range?(value)ifvalue.is_a?(::Range)# 1...10 includes 1..9 but it does not include 1..10.operator=exclude_end?&&!value.exclude_end??:<::<=include_without_range?(value.first)&&value.last.send(operator,last)elseinclude_without_range?(value)endend