Module PatternMatching::DSL_OUTSIDE
In: lib/patternmatching/pattern.rb
Exception NotMatched PatternFragments MatchExec Node NodeBuilder DSL_INSIDE DSL_MODULE DSL_OUTSIDE DSL_INSIDE USAGE VERSION Collector DSL_OUTSIDE DSL_MODULE PatternMatching dot/f_3.png

Domain Specific Language style methods for outside

Methods

build   make  

Public Instance methods

Build structured data

Usage

 build {[foo(bar, 100), foo(buzz, "abc")]}

Do pattern matching

Usage

 make TARGET do
   seems as {PATTERN_1} do ACTION_1 end
   seems as {PATTERN_2} do ACTION_2 end
   seems something do ACTION_DEFAULT end
 end

[Validate]