From: Paul Danese Date: 2007-11-03T04:42:00+09:00 Subject: Re: Help invoking a method of a class I can do it now if you like (I just wasn't sure about how long your meeting would be). -----Original Message----- From: Victor Reyes [mailto:victor.reyes@gmail.com] Sent: Friday, November 02, 2007 1:08 PM To: ruby-talk ML Subject: Help invoking a method of a class I started playing with classes and to that effect, I put this simple do-nothing class just to make sure I can invoke a method within a class. class Test def mag(size) maxLoop = size * size r1 = Array.new(size) {1} p r1 end # End method mag end # End class mag.Test 9 I am getting this error: C:\$user\ruby\Programs\DejaVou>ruby Test.rb Test.rb:9: undefined local variable or method `mag' for main:Object (NameError) Any ideas anyone? I am sure it is something trivial, but, trivial or not I can't get it. Thank you Victor This email and any attached files are confidential and intended solely for the intended recipient(s). If you are not the named recipient you should not read, distribute, copy or alter this email. Any views or opinions expressed in this email are those of the author and do not represent those of the company. Warning: Although precautions have been taken to make sure no viruses are present in this email, the company cannot accept responsibility for any loss or damage that arise from the use of this email or attachments.