Sha256: 6dfc8d2236bbb45aff73fefaf7cfe34dd72a9fc7693a073af7b1c86393befa77
Contents?: true
Size: 259 Bytes
Versions: 36
Compression:
Stored size: 259 Bytes
Contents
module Kernel alias_method :orig_puts, :puts def hash_puts *args print "# " orig_puts *args end def with_hash_puts Kernel.send :alias_method, :puts, :hash_puts yield ensure Kernel.send :alias_method, :puts, :orig_puts end end
Version data entries
36 entries across 36 versions & 1 rubygems