From: "Florian Groß" Date: 2005-05-17T03:35:25+09:00 Subject: Re: Forwardable, reworked Daniel Berger wrote: > A while back I mentioned that there were warnings > coming from the Forwardable module. Because I would > like to use it with another project I'm working on, I > decided to refactor it (attached). > > Please let me know what you think. Nice work! I wonder if you could also add a nicer interface while you are here enhancing things. I'd like to do this: class Foo extend Forwardable delegate :to_i => :@number delegate [:to_s, :reverse] => :@string def initialize @number = 5 @string = "foobar" end end