Sha256: 17a5b32ad913c67d9fb1aab262bffb99e2155d73ed920fc3f17999b3462389a3
Contents?: true
Size: 1.01 KB
Versions: 1
Compression:
Stored size: 1.01 KB
Contents
h1. Cute p, call it simply 'qp' h2. What "qp" (stands for "Cute p") provide more useful "p" function. You can use method 'qp' instead of 'p', then you can see the caller of the method. h2. Installing <pre syntax="ruby">sudo gem install cutep</pre> h2. The Basic <pre syntax="ruby"> # sample1.rb require 'qp' qp 'foo' </pre> <pre> % ruby sample1.rb sample1.rb:3:: ["foo"] </pre> Simply, use '<tt>qp</tt>' instead of '<tt>p</tt>'. <pre syntax="ruby"> # sample2.rb require 'qp' require 'sample1' def foo qp 'bar' qp 1, 2, 3 end foo </pre> <pre> % ruby sample2.rb sample1.rb:3:: ["foo"] sample2.rb:6:foo ["bar"] sample2.rb:7:foo [1, 2, 3] </pre> You can see that the caller of the method and the filename. 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-1.0.0 | website/index.txt |