Code Editor
Learn
Object-Oriented Programming II

A Few Requirements

Perfect!

Some modules, like Math, are already present in the interpreter. Others need to be explicitly brought in, however, and we can do this using require. We can do this simply by typing

require 'module'

We want to use the Ruby Date module to show today's date, but we haven't required it yet!

Report a Bug
If you see a bug or any other issue with this page, please report it here.