3 ms·
Good point. You can definitely instantiate a Time instance without requiring anything: https://www.omniref.com/ruby/2.1.2/symbols/Time#annotation=115&line=5 h
by timr 12y ago
Good point. You can definitely instantiate a Time instance without requiring anything:
https://www.omniref.com/ruby/2.1.2/symbols/Time#annotation=115&line=5 https://www.omniref.com/ruby/2.1.2/symbols/Time#annotation=1...
- mnarayan01 12y agoClarifying (since I think your post is easy to misinterpret if someone does not follow the link): The Time class is part of core ruby. Requiring time from stdlib adds some additional methods. Thus it is not necessary to require time to use the Time class, but requiring time _does_ add additional functionality.