instance method
past?
Ruby on Rails 4.0.13
Since v3.0.20 Last seen in v4.0.13Signature
past?()
Tells whether the DateTime object’s datetime lies in the past.
Source
# File activesupport/lib/active_support/core_ext/date_time/calculations.rb, line 21
def past?
self < ::DateTime.current
end
Defined in activesupport/lib/active_support/core_ext/date_time/calculations.rb line 21
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in DateTime