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/.