Please consider adding documentation to DateTime, one line, require 'date'
The ruby DateTime page does not include this line:
It just happened on IRC right now (I edited/truncated a bit here):
<schemanic> Can anyone tell me why in irb Date/Time/DateTime gives me NameError: uninitialized constant DateTime <apeiros> schemanic: because you forgot to require 'date'? <apeiros> though, Time in that list won't give you a NameError <schemanic> sigh. Okay. I'm sorry - the Ruby doc code example didn't have the requirement statement
The documentation can be found here:
I suggest to add the require 'date' close to the top of that page, to help newcomers not be too
confused about how to use it.
PS: On a side note, perhaps another subsection could be added to the ruby bug/issue tracker here, a subsection
solely for docs? That way, people could report suggestions to improve the documentation there. Anyway that's
just a semi-random suggestion. :)