5 ms·
Your first one, commented with ??????, is an instance of a Duration object. It implements the #ago and #from_now methods, so that Integer objects aren't clutter
by psadauskas 17y ago
Your first one, commented with ??????, is an instance of a Duration object. It implements the #ago and #from_now methods, so that Integer objects aren't cluttered with methods that mean nothing to it.
http://api.rubyonrails.org/classes/ActiveSupport/Duration.html http://api.rubyonrails.org/classes/ActiveSupport/Duration.ht...