website/index.html in cutep-0.0.3 vs website/index.html in cutep-1.0.0
- old
+ new
@@ -3,11 +3,11 @@
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<link rel="stylesheet" href="stylesheets/screen.css" type="text/css" media="screen" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>
- cutep
+ Cute p, call it simply ‘qp’
</title>
<script src="javascripts/rounded_corners_lite.inc.js" type="text/javascript"></script>
<style>
</style>
@@ -28,66 +28,68 @@
</script>
</head>
<body>
<div id="main">
- <h1>cutep</h1>
+ <h1>Cute p, call it simply ‘qp’</h1>
<div id="version" class="clickable" onclick='document.location = "http://rubyforge.org/projects/cutep"; return false'>
<p>Get Version</p>
- <a href="http://rubyforge.org/projects/cutep" class="numbers">0.0.3</a>
+ <a href="http://rubyforge.org/projects/cutep" class="numbers">1.0.0</a>
</div>
- <h1>→ or call it simply ‘qp’</h1>
+ <h2>What</h2>
- <h2>What</h2>
+ <p>“qp” (stands for “Cute p”) provide more useful “p” function.</p>
- <p>“Cute p” provide more human readable “p” function.</p>
+ <p>You can use method ‘qp’ instead of ‘p’,
+then you can see the caller of the method.</p>
- <p>You can use a method ‘qp’ instead of ‘p’ and you’ll see the recent
-caller of the method.</p>
-
-
<h2>Installing</h2>
<pre syntax="ruby">sudo gem install cutep</pre>
<h2>The Basic</h2>
<pre syntax="ruby">
+# sample1.rb
require 'qp'
qp 'foo'
</pre>
+<pre>
+% ruby sample1.rb
+sample1.rb:3:: ["foo"]
+</pre>
+
<p>Simply, use ‘<tt>qp</tt>’ instead of ‘<tt>p</tt>’.</p>
- <h2>Demonstration of usage</h2>
-
-
<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>
- <p>You see that the caller method and the filename of the method.</p>
+ <p>You can see that the caller of the method and the filename.</p>
<h2>Repositry</h2>
@@ -101,12 +103,12 @@
<h2>Contact</h2>
- <p>Comments are welcome. Send an email to “Kouichirou Eto” <eto at rubyforge dot org>.</p>
+ <p>Comments are welcome. Send an email to “Kouichirou Eto” <eto <em>at</em> rubyforge <em>dot</em> org>.</p>
<p class="coda">
- 15th June 2007<br>
+ 29th June 2007<br>
Theme extended from <a href="http://rb2js.rubyforge.org/">Paul Battley</a>
</p>
</div>
<!-- insert site tracking codes here, like Google Urchin -->