From: John Maclean Date: 2006-01-03T23:09:27+09:00 Subject: Understanding the fundamentals, methods. (from Pickaxe book) Hey chaps, I'd just like to check that the following uses methods and that no classes or instance variables are created. I see that there are no @instance_variables.. Where's the object? What class is being used? Am I correct in saying that say_goodnight is a method, where (name) is the parameter for it? #!/usr/bin/ruby # Tue Dec 27 15:42:59 GMT 2005 # from page 13 of the pick-axe book def say_goodnight(name) "Good night, #{name.capitalize}" # we use the output of the last result - this save time end # Time for bed... puts say_goodnight('jayeola') puts say_goodnight('john-Boy') puts say_goodnight('mary-Ellen') puts say_goodnight('mary-loo') puts say_goodnight('silly-slapper') puts say_goodnight('hex-editor') -- John Maclean MSc (DIC) 07739 171 531