From: Lee Jarvis Date: 2007-09-06T01:23:41+09:00 Subject: Method switching Ok this probably won't make any send at all, but lets say i have something like this: def send(a) puts "#{a}\n" end def colorsend(a) puts "#{colorize(a)}\n" end def something send "hello" end Ok lets say i have 50+ methods like the something method, that relate to the send method, i want to be able to have 1 switch to change the method without changing every method that uses send(message) for example i could use if @color = 1 colorsend(msg) else send(msg) end but that means i would have to add that to *every* method.. if anyone at all out there understands what i mean it would be very helpful thanks in advance.. -- Posted via http://www.ruby-forum.com/.