Module PatternMatching::DSL_MODULE
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 inside module

Methods

func  

Public Instance methods

Define method as partial style

Usage

 func(NAME).seems as {PATTERN_1} do ACTION_1 end
 func(NAME).seems as {PATTERN_2} do ACTION_2 end
 func(NAME).seems something do ACTION_DEFAULT end

or

 func NAME 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]