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
REGEXP =
/\A#{SCOPE_NAME_PATTERN}\z/.freeze

Constants inherited from Mutant::Expression

SCOPE_NAME_PATTERN, SCOPE_SYMBOL_PATTERN

Instance Method Summary collapse

Methods inherited from Mutant::Expression

#match_length, #prefix?, try_parse

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.

Matcher matcher on expression

Parameters:

Returns:



79
80
81
# File 'lib/mutant/expression/namespace.rb', line 79

def matcher(env)
  Matcher::Scope.new(env, Object.const_get(scope_name), self)
end