Subject: [ruby-talk:23372] varriables and class
From: "Steven Thomas" <sthomas delta.k12.co.us>
Date: Fri, 26 Oct 2001 07:57:40 +0900
In-reply-to: 23370
Another newbie question
How do I get variables to use a method defined in a class.
I have:
class Round
def to_hund
@num * 100
end
end
miles.to_hund
If returns "undefined method"