Class: Mutant::Expression::Namespace::Exact

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

Overview

Exact namespace expression

Constant Summary collapse

MATCHER =
Matcher::Scope

Constants inherited from Mutant::Expression

INSPECT_FORMAT, METHOD_NAME_PATTERN, REGISTRY, SCOPE_NAME_PATTERN, SCOPE_PATTERN

Instance Attribute Summary

Attributes inherited from Mutant::Expression

#inspect, #syntax

Instance Method Summary collapse

Methods inherited from Mutant::Expression

#initialize, #match_length, parse, #prefix?, try_parse

Constructor Details

This class inherits a constructor from Mutant::Expression

Instance Method Details

#matcher(env) ⇒ 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:



83
84
85
# File 'lib/mutant/expression/namespace.rb', line 83

def matcher(env)
  Matcher::Scope.new(env, Mutant.constant_lookup(namespace), self)
end