Le mardi 31 juillet 2007 23:48 +0900, ara.t.howard a ñÄrit : > i was playing with this last night, thought some here might be > interested: > > http://drawohara.tumblr.com/post/7241442 > > cheers. > > a @ http://drawohara.com/ > -- > we can deny everything, except that we have the possibility of being > better. simply reflect on that. > h.h. the 14th dalai lama Just for the syntax, I don't like : --- redefining :foo do def foo(*a, &b) super.reverse end end --- I prefer : --- redefining :foo do |*a, &b| super.reverse end --- Greater, it isn't ? --- However, there is an other way : --- redefining :foo do |&old| # &old or old, see after def foo(*a, &b) old.call.reverse end end --- and maybe... --- redefining :foo do |*olds| # list, ordered (asc or desc ?) def foo(*a, &b) (olds.shift.call + olds.shift.call).reverse end # maybe add a shortcut for shift.call... end --- Regards -- Etienne Vallette d'Osia