From: David Stanford Date: 2009-02-05T04:03:55+09:00 Subject: Re: Making object methods available externally Rob Biedenharn wrote: > On Feb 4, 2009, at 1:37 PM, David Stanford wrote: > class CheesePhrase > def initialize(phrase) > @phrase = phrase > say_it > end > > def self.say_it(phrase) > puts phrase > end > def say_it > self.class.say_it(@phrase) > end > end > -Rob > > Rob Biedenharn http://agileconsultingllc.com > Rob@AgileConsultingLLC.com Thanks a lot, Rob. Is this really the standard way of implementing something like this? It just seems a little redundant, no? Thanks! -David -- Posted via http://www.ruby-forum.com/.