Class: Sinclair::Matchers::ChangeInstanceMethod Private
- Inherits:
-
AddMethod
- Object
- RSpec::Matchers::BuiltIn::BaseMatcher
- Base
- AddMethod
- Sinclair::Matchers::ChangeInstanceMethod
- Defined in:
- lib/sinclair/matchers/change_instance_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.
AddInstanceMethod is able to build an instance of ChangeInstanceMethodOn
Instance Method Summary collapse
-
#on(target = nil) ⇒ ChangeInstanceMethodOn
Builds final matcher.
Methods inherited from AddMethod
Methods inherited from Base
#equal?, #initialize, #supports_block_expectations?
Constructor Details
This class inherits a constructor from Sinclair::Matchers::Base
Instance Method Details
#on(target = nil) ⇒ ChangeInstanceMethodOn
Builds final matcher
The matcher checks if a method was added to a class or instance
57 |
# File 'lib/sinclair/matchers/change_instance_method.rb', line 57 with_final_matcher :on, ChangeInstanceMethodOn |