[ next ] [ prev ] [ contents ] Invitation To Ruby

Magic for Creating New Objects

Regarding: StandardDice.new

I called this a magic incantation because I didn't want to get details at this point.

However, the astute reader may notice that creating an object looks alot like sending the new message to an object named StandardDice.

The astute reader would be correct.


[ next ] [ prev ] [ contents ] Copyright 2002 by Jim Weirich.
All rights reserved.