From: Paul Roche Date: 2010-10-06T04:32:35+09:00 Subject: Re: Calling a method with an instance Jedrin wrote: > On Oct 5, 3:20�pm, Jedrin wrote: >> > �def initialize(am, dis) >> >> > What is the best way to call a method with an instance? >> > Thanks >> > -- >> > Posted viahttp://www.ruby-forum.com/. >> >> I think u want: >> dis1.discount_amount(dis1.amount, discount) > > this works, but not sure if this approach is most sensible > > dis1.discount_amount(dis1.amount, dis1.discount) Thanks for this. What is the best way to go about dealing with a method such as this that has two parameters? -- Posted via http://www.ruby-forum.com/.