Module: Qo::PatternMatchers::Branching

Included in:
PatternMatch
Defined in:
lib/qo/pattern_matchers/branching.rb

Overview

A module to allow the registration of braches to a pattern matcher.

Author:

  • baweaver

Since:

  • 1.0.0

Defined Under Namespace

Modules: ClassMethods

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object

On inclusion, extend the class including this module with branch registration methods.

Parameters:

  • base (Class)

    Class including this module, passed from include

Since:

  • 1.0.0



14
15
16
# File 'lib/qo/pattern_matchers/branching.rb', line 14

def self.included(base)
  base.extend(ClassMethods)
end