Re:Pendulum – Python datetimes made easy
by Niksko on Tuesday August 16, 2016 @10:10PM
(#12302045)
No, don't think so. I think this is a native syntax construct in Ruby.
[ Parent
| on HN ]
1.day is not a native Ruby concept, it is a method monkeypatched into the Numeric class by Rails' ActiveSupport. See http://api.rubyonrails.org/classes/Numeric.html#method-i-day and https://ruby-doc.org/core-2.2.0/Numeric.html.