ONJava.com -- The Independent Source for Enterprise Java
oreilly.comSafari Books Online.Conferences.

advertisement

AddThis Social Bookmark Button
Article:
  Ruby/Tk Primer, Part 3
Subject:   Problems with complete script
Date:   2004-08-01 04:02:11
From:   m_keightley
Response to: Problems with complete script

Okay, donkey of the day award goes to me. I've now spotted what the problem was. The problem is on this line is to_s
"#{@weekday}\t\t#{commandName}"
It should read
"#{@weekday}\t\t#{@commandName}"
Note the @ before commandName, showing it to be an instance variable, according to part 1.
Hope this helps other newbies out there.

1 to 1 of 1
  1. Problems with complete script
    2004-08-01 10:27:50  Christopher Roach | O'Reilly Blogger [View]

1 to 1 of 1