APIdock
/
Ruby on Rails
/
Browse
About
method
before
v5.2.3
-
Show latest stable
- Class:
ActiveSupport
::
Duration
before
(time = ::Time.current)
public
Alias for
ActiveSupport::Duration#ago
Related methods
Instance methods
%
*
+
-
-@
/
<=>
==
after
ago
as_json
before
coerce
encode_with
eql?
from_now
hash
init_with
inspect
instance_of?
is_a?
iso8601
kind_of?
since
to_i
to_s
until
Class methods
===
build
days
hours
minutes
months
new
parse
seconds
weeks
years
Private methods
calculate_total_seconds
method_missing
raise_type_error
respond_to_missing?
sum