From: 7rans Date: 2006-07-25T21:55:02+09:00 Subject: Re: Meta-Meta-Programming, revisited Erik Veenstra wrote: > > More flexible and less "special". Seems like a good idea. > > What about |obj, method_name, args, block|? That one must be > easy to remember, since it resembles the order of the call > (object is the receiver). > > > Like the diagram btw. > > ;] > > Last night, I glanced over the front page of the programming > section of Reddit, like I do every night. There it was: "Ruby > Monitor-Functions, Or Meta-Meta-Programming in Ruby"! Very > funny... ;] > > gegroet, > Erik V. - http://www.erikveen.dds.nl/ > > ---------------------------------------------------------------- > > post_condition(:description) do |obj, method_name, args, block| > obj.instance_eval do > puts @text > end > end > > ---------------------------------------------------------------- Very nice. Not sure how the method_name parameter is useful, isn't it just :description? In any case, the paraemters are nicely intuitive! T.