Class: Mutant::Expression::Namespace

Inherits:
Mutant::Expression show all
Includes:
AbstractType
Defined in:
lib/mutant/expression/namespace.rb

Overview

Abstract base class for expressions matching namespaces

Direct Known Subclasses

Exact, Recursive

Defined Under Namespace

Classes: Exact, Recursive

Constant Summary

Constants inherited from Mutant::Expression

METHOD_NAME_PATTERN, REGISTRY, SCOPE_NAME_PATTERN, SCOPE_PATTERN

Instance Attribute Summary

Attributes inherited from Mutant::Expression

#syntax

Instance Method Summary collapse

Methods inherited from Mutant::Expression

#initialize, #match_length, parse

Constructor Details

This class inherits a constructor from Mutant::Expression

Instance Method Details

#matcher(cache) ⇒ Matcher

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.

Return matcher

Parameters:

Returns:



15
16
17
# File 'lib/mutant/expression/namespace.rb', line 15

def matcher(cache)
  self.class::MATCHER.new(cache, namespace)
end