method

include?

include?(value)
public

Extends the default Range#include? to support ActiveSupport::TimeWithZone.

(1.hour.ago..1.hour.from_now).include?(Time.current) # => true