module Kernel

Public Instance Methods

p(*args, &block)
Also aliased as: p_without_plock
Alias for: p_with_plock
p_with_plock(*args, &block) click to toggle source
# File lib/plock.rb, line 43
def p_with_plock *args, &block
  returned_by_p = p_without_plock( *args )
  if block_given?
    Plock.print_block_with :inspect, :p, &block
  else
    returned_by_p
  end
end
Also aliased as: p
p_without_plock(*args, &block)
Alias for: p
pp(*args, &block)
Also aliased as: pp_without_plock
Alias for: pp_with_plock
pp_with_plock(*args, &block) click to toggle source
# File lib/plock.rb, line 55
def pp_with_plock *args, &block
  returned_by_pp = pp_without_plock( *args )
  if block_given?
    Plock.print_block_with :pretty_inspect, :pp, &block
  else
    returned_by_pp
  end
end
Also aliased as: pp
pp_without_plock(*args, &block)
Alias for: pp