Class: Vanguard::Matcher::Nullary::GreaterThan

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

Overview

Greather 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)


28
29
30
# File 'lib/vanguard/matcher/nullary/greater_than.rb', line 28

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)


18
19
20
# File 'lib/vanguard/matcher/nullary/greater_than.rb', line 18

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