A Few Requirements : Capitalization of Modules


The below instructions ask that we require the Date module, but ask that we type it as "require 'date' " as in lower case. Does the Date module have a special exception to the rule? I ask because in the the following lessons we are asked that we include the Math module as 'include Math'

"We want to use the Ruby Date module to show today's date, but we haven't required it yet!
Go ahead and require 'date' on line 1 so the code on line 3 will work."


The require 'date' statement will load and run the module immediately. It will not be reusable, as I understand it. When we include a module, it is re-usable by the program. As for the naming, that is what is set out by Ruby.


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.