From: Phill Davies Date: 2008-08-23T00:14:34+09:00 Subject: Re: temporarily redefine the 'puts' command? Sure you can, that's one of the beautiful things about Ruby. module Kernel def puts (s) # Do whatever you want here, including nothing end end aidy wrote: > Hi, > > Is it possible to temporarily redefine the 'puts' command? > > I have a gem that unnecessarily writes to the console, which effects > the Rspec Story Runner logging, > > I do not want to manual comment out the puts as I use this gem on > numerous machines > > Aidy -- Posted via http://www.ruby-forum.com/.