Class: Vanguard::Matcher::Nullary::LessThan

Inherits:
Vanguard::Matcher::Nullary show all
Defined in:
lib/vanguard/matcher/nullary/less_than.rb

Overview

Less than matcher

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#valueObject (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

Returns:

  • (Object)


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

Parameters:

  • value (Object)

Returns:

  • (true)
  • (false)


19
20
21
# File 'lib/vanguard/matcher/nullary/less_than.rb', line 19

def matches?(value)
  value < self.value
end