Class: Casino::Intersection::Match::Lesser

Inherits:
Greater show all
Defined in:
lib/casino/intersection/match/lesser.rb

Instance Attribute Summary

Attributes inherited from Equivalence

#document, #field, #key, #value

Instance Method Summary collapse

Methods inherited from Equivalence

#initialize

Constructor Details

This class inherits a constructor from Casino::Intersection::Match::Equivalence

Instance Method Details

#eligible?Boolean

Returns:

  • (Boolean)


6
7
8
# File 'lib/casino/intersection/match/lesser.rb', line 6

def eligible?
  %w($lt $lte).include? key
end

#evaluateObject



10
11
12
# File 'lib/casino/intersection/match/lesser.rb', line 10

def evaluate
  lesser_than? ? lesser_than! : lesser_than_or_equal!
end