website/index.html in patternmatching-0.2.1 vs website/index.html in patternmatching-0.2.2

- old
+ new

@@ -31,11 +31,11 @@ <div id="main"> <h1>PatternMatching module</h1> <div id="version" class="clickable" onclick='document.location = "http://rubyforge.org/projects/patternmatching"; return false'> Get Version - <a href="http://rubyforge.org/projects/patternmatching" class="numbers">0.2.1</a> + <a href="http://rubyforge.org/projects/patternmatching" class="numbers">0.2.2</a> </div> <h1>&#x2192; &#8216;patternmatching&#8217;</h1> <h2>What</h2> @@ -235,10 +235,30 @@ p o.name #=&gt; "bar" p o.buzz("buzz") == o #=&gt; true p o.name #=&gt; "buzz" </pre> +<h3>Pattern with Condition Example</h3> +It is from ver 0.2.2 <span class="caps">API</span> +<pre> +require "patternmatching" + +include PatternMatching + +num = 100 +result = make num do + seems as {:n}, with {n &lt; 10} do + true + end + seems as {:n}, with {n &gt;= 10} do + false + end +end + +p result #=&gt; false +</pre> + <h2>Forum</h2> <p>Visit RubyForge project forum.</p> @@ -283,10 +303,10 @@ <p><a href="http://d.hatena.ne.jp/bellbind/">My blog</a> (written in Japanese) could be help you.</p> <p class="coda"> - <a href="mailto:drnicwilliams@gmail.com">Dr Nic</a>, 5th June 2007<br> + <a href="mailto:drnicwilliams@gmail.com">Dr Nic</a>, 6th 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 -->