Module: Kernel

Defined in:
lib/spectator/debug.rb

Instance Method Summary collapse

Instance Method Details

#p(*args) ⇒ Object



3
4
5
# File 'lib/spectator/debug.rb', line 3

def p(*args)
  real_p(*args) if $spectator_debug
end

#p_print(*args) ⇒ Object



6
7
8
# File 'lib/spectator/debug.rb', line 6

def p_print(*args)
  print(*args) if $spectator_debug
end

#real_pObject



2
# File 'lib/spectator/debug.rb', line 2

alias real_p p