Hi gurus and nubys,
Loooking forward to the syntax
def foo:pre
end
I wonder: could we add preconditions without resorting to syntax?
Would we have something like this:
myobj.methods.each do |m|
m.wrap(:pre) {|*args| p args }
end
?
Sounds obvious and necessary to me, but I can't remeber talks about
this..
TIA