Class: Sinclair::Matchers::AddMethod Private
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
Direct Known Subclasses
AddClassMethod, AddInstanceMethod, ChangeClassMethod, ChangeInstanceMethod
Instance Method Summary collapse
-
#matches?(_actual) ⇒ Boolean
abstract
private
Raise a warning on the usage as this is only a builder.
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
47 48 49 |
# File 'lib/sinclair/matchers/add_method.rb', line 47 def matches?(_actual) raise SyntaxError, matcher_error end |