On Wednesday 20 October 2004 12:54 pm, Mark Probert wrote:
| Hi ..
|
| I am doing indirect dispatch, something like:
|
|   class Foo
|     def bar(fn)
        self.send(fn) 
|     end
|   end
|
|   class Bar < Foo
|     def blah
|       puts "blah here"
|     end
|   end
|
|   f = Bar.new
|   f.bar("blah")
|
| It works however I am sure there must be a nicer way of doing the bar(fn)
| stuff.  Any ideas?
|
| TIA,
| -mark.

-- 
( o _  елеще┴
 //    trans.
/ \    transami / runbox.com

I don't give a damn for a man that can only spell a word one way.
-Mark Twain