Class: Sinclair::Matchers::AddMethod Private

Inherits:
Base
  • Object
show all
Defined in:
lib/sinclair/matchers/add_method.rb

Overview

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

Common methods for matchers

Instance Method Summary collapse

Methods inherited from Base

#equal?, #initialize, #supports_block_expectations?

Constructor Details

This class inherits a constructor from Sinclair::Matchers::Base

Instance Method Details

#matches?(_actual) ⇒ Boolean

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.

This method is abstract.

Raise a warning on the usage as this is only a builder

Returns:

  • (Boolean)

Raises:

  • SyntaxError



47
48
49
# File 'lib/sinclair/matchers/add_method.rb', line 47

def matches?(_actual)
  raise SyntaxError, matcher_error
end