module Kernel

Public Instance Methods

hash_puts(*args) click to toggle source
# File lib/rumination/utils/with_hash_puts.rb, line 3
def hash_puts *args
  print "# "
  orig_puts *args
end
with_hash_puts() { || ... } click to toggle source
# File lib/rumination/utils/with_hash_puts.rb, line 8
def with_hash_puts
  Kernel.send :alias_method, :puts, :hash_puts
  yield
ensure
  Kernel.send :alias_method, :puts, :orig_puts
end