cutep

Get Version

0.0.3

→ or call it simply ‘qp’

What

“Cute p” provide more human readable “p” function.

You can use a method ‘qp’ instead of ‘p’ and you’ll see the recent caller of the method.

Installing

sudo gem install cutep

The Basic

require 'qp'
qp 'foo'

Simply, use ‘qp’ instead of ‘p’.

Demonstration of usage

require 'qp'
qp 'foo'

def a_method
  qp 'in a_method'
  qp 1, 2, 3
end
a_method
% ruby examples/sample.rb
sample.rb:2::   ["foo"]
sample.rb:5:a_method    ["in a_method"]
sample.rb:6:a_method    [1, 2, 3]

You see that the caller method and the filename of the method.

Repositry

The trunk repository is svn://rubyforge.org/var/svn/cutep/trunk for anonymous access.

License

Ruby’s.

Contact

Comments are welcome. Send an email to “Kouichirou Eto” .

15th June 2007
Theme extended from Paul Battley