class Mutest::Expression::Method

Explicit method expression

Constants

MATCHERS
METHOD_NAME_PATTERN
REGEXP

Public Instance Methods

matcher() click to toggle source

Matcher for expression

@return [Matcher]

# File lib/mutest/expression/method.rb, line 38
def matcher
  methods_matcher = MATCHERS.fetch(scope_symbol).new(scope)

  Matcher::Filter.new(methods_matcher, ->(subject) { subject.expression.eql?(self) })
end
syntax() click to toggle source

Syntax of expression

@return [String]

# File lib/mutest/expression/method.rb, line 30
def syntax
  [scope_name, scope_symbol, method_name].join
end

Private Instance Methods

scope() click to toggle source

Scope object

@return [Class, Method]

# File lib/mutest/expression/method.rb, line 49
def scope
  Object.const_get(scope_name)
end