From: Frank Meyer Date: 2007-08-17T23:32:18+09:00 Subject: Re: Passing two functions as parameters Thanks for all your work, but unfortunately when I created this topic I didn't realize that I cannot use blocks, because I'm passing a Hash to this constructor which consists of a symbol/string/whatever which maps to an array of two functions. So a call would look like this: r = MyClass.new( :symbol1 => [ method( :foo ), method( :bar ) ], :symbol2 => [ method( :foo2 ), method( :bar2 ] ) #and so on These functions are used to convert from a given object (can be anything it's up to the user) to a known object type and back to a user object. -- Posted via http://www.ruby-forum.com/.