Class: Vanguard::Matcher::Nullary::LessThan
- Inherits:
-
Vanguard::Matcher::Nullary
- Object
- Vanguard::Matcher
- Vanguard::Matcher::Nullary
- Vanguard::Matcher::Nullary::LessThan
- Defined in:
- lib/vanguard/matcher/nullary/less_than.rb
Overview
Less than matcher
Instance Attribute Summary collapse
-
#value ⇒ Object
readonly
private
Return value.
Instance Method Summary collapse
-
#matches?(value) ⇒ true, false
private
Test if value is greater.
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
29 30 31 |
# File 'lib/vanguard/matcher/nullary/less_than.rb', line 29 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 is greater
19 20 21 |
# File 'lib/vanguard/matcher/nullary/less_than.rb', line 19 def matches?(value) value < self.value end |