Modules and Classes, Includes and Extends

A

Alpha Blue

I wanted to provide an example which for me is easier to understand than
always using the Foo + Bar examples others use. When using modules and
classes, I see them as containers. I decided to just put together a
more far-fetched example using the Earth, Gravity, Oxygen, and an
AlienSpecies.

http://gist.github.com/290785

I don't normally nest modules and classes deeply, so I'm just trying to
wrap my head around the idea of including and extending modules and
classes.

I believe that I'm correct with the very last example, or am I not?

If you want to add some more examples to this, please do.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top