examples/partial_style_method.rb in patternmatching-0.1.0 vs examples/partial_style_method.rb in patternmatching-0.1.1

- old
+ new

@@ -7,14 +7,14 @@ class Calc # At first, extends with the module extend PatternMatching # def calcm(o), as 3 partial styles - func(:calcm).seems as {plus(:x, :y)} do - calcm(x) + calcm(y) + func(:calcm).seems as {plus(:a, :b)} do + calcm(a) + calcm(b) end - func(:calcm).seems as {mul(:x, :y)} do - calcm(x) * calcm(y) + func(:calcm).seems as {mul(:a, :b)} do + calcm(a) * calcm(b) end func(:calcm).seems as {:value} do value end end