website/index.html in patternmatching-0.1.0 vs website/index.html in patternmatching-0.1.1
- 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.1.0</a>
+ <a href="http://rubyforge.org/projects/patternmatching" class="numbers">0.1.1</a>
</div>
<h1>→ ‘patternmatching’</h1>
<h2>What</h2>
@@ -65,19 +65,27 @@
<li>Syntax based on meta-programming, like “rspec”, and so on.</li>
</ul>
<p>Note: Default equivalence used in structured pattern matching is
-based on “pattern === data”, so “foo(Numeric)” matches with “foo(100)”</p>
+based on “<code>pattern === data</code>”,
+so “<code>foo(Numeric)</code>” matches “<code>foo(100)</code>”.</p>
- <p>Note: Not thread safe now.</p>
+ <p>Notice: Current implementation is not thread safe now.
+Need the receiver object(NOT an argument) calling pattern matching
+synchronized when multi-threaded access.</p>
<h2>Demonstration of usage</h2>
+ <p>Symbols(e.g. <code>:a</code>, <code>:right_value</code>)
+in patterns is passed as variable
+to the following block when the pattern matched.</p>
+
+
<h3>Pattern matching expression</h3>
<pre>
require "patternmatching"
# For DSL style code, include PatternMatching
@@ -187,9 +195,12 @@
end
end # => "He is Jiro"
</pre>
<h2>Forum</h2>
+
+
+ <p>Visit RubyForge project forum.</p>
<h2>How to submit patches</h2>