Phil Tomson <ptkwt / shell1.aracnet.com> wrote:
> Apparently Linux Gazette has been running a series of tutorial articles on 
> Ruby for the last three months.  Part 3 is now available at:
> http://www.linuxgazette.com/issue86/ramankutty.html

Not too clearly written, sadly. For instance

  Now that all classes must be able to call `sqr', let's try to call
  `sqr' to `self':

  print self.sqr(5)
  ^D
  ERR: private method `sqr' called for (Object)

  Calling the function using `self' after the definition of the function
  gives the error as shown above. The error message is not intuitive, so
  what does it mean?

  What is happening is that a method that is defined at the top levelcan
  can be called using function style as opposed to method style. See
  what error message you get when undefined methods are called.

would leave me no wiser than befre.

martin