Eric Mahurin ha scritto: > Is there another way to do this? With all of the talk about > duck-typing, there would already be something out there to do > this. There was some talk in the past about Object.new taking a block, which imho would be useful for this. Meanwhile what about using Struct.new with a block to define methods?