Class: Vanguard::Matcher::Nullary::Equality
- Inherits:
-
Vanguard::Matcher::Nullary
- Object
- Vanguard::Matcher
- Vanguard::Matcher::Nullary
- Vanguard::Matcher::Nullary::Equality
- Defined in:
- lib/vanguard/matcher/nullary/equality.rb
Overview
Equality matcher
Instance Attribute Summary collapse
-
#value ⇒ Object
readonly
private
Return value.
Instance Method Summary collapse
-
#matches?(value) ⇒ true, false
private
Test if value for equality.
Instance Attribute Details
#value ⇒ Object (readonly)
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.
Return value
14 15 16 |
# File 'lib/vanguard/matcher/nullary/equality.rb', line 14 def value @value end |
Instance Method Details
#matches?(value) ⇒ true, false
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.
Test if value for equality
26 27 28 |
# File 'lib/vanguard/matcher/nullary/equality.rb', line 26 def matches?(value) value == self.value end |