Currently if I want to "do something" to a method after it's defined, I
basically have to do

def method
 # stuff
end
do_something_to_method :method

(or hook onto method_added).

This is surprising since typically with ruby constructs you can use them
as blocks, like

a.compact{}.uniq.whatever

Proposal:
Change def to return a Method instance [1]

which would allow construct like
def method

end.do_something_to_it

Feedbacks?
-r

[1] http://rcrchive.net/ the idea isn't new
-- 
Posted via http://www.ruby-forum.com/.