website/index.txt in cutep-0.0.3 vs website/index.txt in cutep-1.0.0
- old
+ new
@@ -1,50 +1,54 @@
-h1. cutep
+h1. Cute p, call it simply 'qp'
-h1. → or call it simply 'qp'
-
h2. What
-"Cute p" provide more human readable "p" function.
+"qp" (stands for "Cute p") provide more useful "p" function.
-You can use a method 'qp' instead of 'p' and you'll see the recent
-caller of the method.
+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>'.
-h2. Demonstration of usage
-
<pre syntax="ruby">
+# sample2.rb
require 'qp'
-qp 'foo'
+require 'sample1'
-def a_method
- qp 'in a_method'
+def foo
+ qp 'bar'
qp 1, 2, 3
end
-a_method
+
+foo
</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]
+% ruby sample2.rb
+sample1.rb:3:: ["foo"]
+sample2.rb:6:foo ["bar"]
+sample2.rb:7:foo [1, 2, 3]
</pre>
-You see that the caller method and the filename of the method.
+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.
@@ -52,6 +56,6 @@
Ruby's.
h2. Contact
-Comments are welcome. Send an email to "Kouichirou Eto" <eto at rubyforge dot org>.
+Comments are welcome. Send an email to "Kouichirou Eto" <eto _at_ rubyforge _dot_ org>.