Module Needle::IncludeExclude
In: lib/needle/include-exclude.rb

A module encapsulating the functionality of a service with include/exclude functionality. Such functionality involves a the ability to specify a pair of include and exclude arrays, each of which must be an array of method names that should be included or excluded from some kind of processing.

Constants

PATTERN = /^ (.*?) (?# this matches the method name pattern) (?: (?# begin optional arity section) \( (?# begin parenthesized section) ([<=>])? (?# optional comparator character) (\d+) (?# arity specification) \) (?# end parenthesized section) )? (?# end optional arity section) $/x   This is the regular expression for parsing elements in an include or exclude array.

[Validate]