Skip to content
Better HN
Top
Best
Ask
Show
New
Jobs
Search
⌘K
0 points
Niksko
9y ago
0 comments
Save
Share
No, don't think so. I think this is a native syntax construct in Ruby.
0 comments
2 comments · 1 top-level
top
newest
oldest
teej
9y ago
· 1 in thread
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
.
twblalock
9y ago
I can see how people think it is native Ruby. Very few people use Ruby without Rails.
j
/
k
navigate · click thread line to collapse