method
include?
v6.1.3.1 -
Show latest stable
- Class:
ActiveSupport::IncludeTimeWithZone
include?(value)public
Extends the default Range#include? to support ActiveSupport::TimeWithZone.
(1.hour.ago..1.hour.from_now).include?(Time.current) # => true