Module: Brandish::Processor::NameFilter Private

Defined in:
lib/brandish/processor/name_filter.rb

Overview

This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.

A "name filter" for command and block nodes. This provides helpers to filter out nodes that don't have the given name. The class will keep an internal list of names that are allowed to be used for the node, and if the node matches, then it processes it.

Defined Under Namespace

Modules: ClassMethods, InstanceMethods

Class Method Summary collapse

Class Method Details

.included(receiver) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Used as a hook for Ruby.



59
60
61
62
# File 'lib/brandish/processor/name_filter.rb', line 59

def self.included(receiver)
  receiver.extend         ClassMethods
  receiver.send :include, InstanceMethods
end