Class: RSpec::Matchers::BuiltIn::OperatorMatcher Private
- Inherits:
-
Object
- Object
- RSpec::Matchers::BuiltIn::OperatorMatcher
- Defined in:
- lib/rspec/matchers/built_in/operators.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.
Provides the implementation for operator matchers.
Not intended to be instantiated directly.
Only available for use with should
.
Instance Method Summary (collapse)
- - (String) description private
-
- (OperatorMatcher) initialize(actual)
constructor
private
A new instance of OperatorMatcher.
Constructor Details
- (OperatorMatcher) initialize(actual)
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.
Returns a new instance of OperatorMatcher
41 42 43 |
# File 'lib/rspec/matchers/built_in/operators.rb', line 41 def initialize(actual) @actual = actual end |
Instance Method Details
- (String) description
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.
76 77 78 |
# File 'lib/rspec/matchers/built_in/operators.rb', line 76 def description "#{@operator} #{@expected.inspect}" end |