From: Jay Pangmi Date: 2008-09-11T23:37:37+09:00 Subject: Re: define and call methods in ruby David A. Black wrote: > You're defining do_something as an instance method of Myclass; that > means that you need an instance of Myclass in order to call > do_something. To get that instance, you need to do Myclass.new. > > > David Thanks again David, So, here's how I've tried: class MyDate md=MyDate.new() md.display def display puts "hi" end end but failed... also with md=MyDate.new if () matters at all.. thanks -- Posted via http://www.ruby-forum.com/.