Sha256: ee0298e4c18f5ca45193c27798bd040ee38500ff628835a0ce1e9c897a7c7738

Contents?: true

Size: 1012 Bytes

Versions: 1

Compression:

Stored size: 1012 Bytes

Contents

h1. cutep

h1. → or call it simply 'qp'

h2. 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.

h2. Installing

<pre syntax="ruby">sudo gem install cutep</pre>

h2. The Basic

<pre syntax="ruby">
require 'qp'
qp 'foo'
</pre>

Simply, use '<tt>qp</tt>' instead of '<tt>p</tt>'.

h2. Demonstration of usage

<pre syntax="ruby">
require 'qp'
qp 'foo'

def a_method
  qp 'in a_method'
  qp 1, 2, 3
end
a_method
</pre>

<pre>
% ruby examples/sample.rb
sample.rb:2::   ["foo"]
sample.rb:5:a_method    ["in a_method"]
sample.rb:6:a_method    [1, 2, 3]
</pre>

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

h2. Repositry

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

h2. License

Ruby's.

h2. Contact

Comments are welcome. Send an email to "Kouichirou Eto" <eto at rubyforge dot org>.

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
cutep-0.0.3 website/index.txt