Adam Lauper wrote:

> 
> module Kernel
>   def self.puts text, debug=false
>     $stdout.puts text if debug
>   end
> end
> 
> puts "Hello, World!", true
> 
> Any ideas?

You want to:
1) open Kernel
2) alias "puts" to something else, like "old puts"
3) define your own puts with your own input
4) call the old puts method when you're happy with the input
-- 
Posted via http://www.ruby-forum.com/.