README.txt in patternmatching-0.2.1 vs README.txt in patternmatching-0.2.2
- old
+ new
@@ -177,9 +177,28 @@
p o.bar == o #=> true
p o.name #=> "bar"
p o.buzz("buzz") == o #=> true
p o.name #=> "buzz"
+=== Pattern with Condition Example
+It is from ver. 0.2.2 API
+
+ require "patternmatching"
+
+ include PatternMatching
+
+ num = 100
+ result = make num do
+ seems as {:n}, with {n < 10} do
+ true
+ end
+ seems as {:n}, with {n >= 10} do
+ false
+ end
+ end
+
+ p result #=> false
+
== Forum
Visit the project forum in RubyForge.
== How to submit patches