Module: Kernel

Defined in:
lib/putsinator.rb

Instance Method Summary collapse

Instance Method Details

#noisy_p(*args) ⇒ Object Also known as: p, warn



12
13
14
15
16
17
# File 'lib/putsinator.rb', line 12

def noisy_p( *args )
  file, line = caller[0].split(':')
  file = File.basename file

  default_p "[#{file}:#{line}]", *args
end

#noisy_puts(*args) ⇒ Object Also known as: puts



2
3
4
5
6
7
# File 'lib/putsinator.rb', line 2

def noisy_puts( *args )
  file, line = caller[0].split(':')
  file = File.basename file

  default_puts "[#{file}:#{line}]", *args
end