Class: LessSpec
- Inherits:
-
ExpressionLeafSpec
- Object
- LeafSpec
- ExpressionLeafSpec
- LessSpec
- Defined in:
- lib/ruva/expression/equal_greater_less.rb
Instance Method Summary collapse
Methods inherited from ExpressionLeafSpec
#create_report_string, #create_typed_value, #get_object_value, #get_value
Methods inherited from LeafSpec
#evaluate, #initialize, #report, #set_reporting, #set_validator
Constructor Details
This class inherits a constructor from LeafSpec
Instance Method Details
#compare(comparable, value) ⇒ Object
8 |
# File 'lib/ruva/expression/equal_greater_less.rb', line 8 def compare (comparable, value) value < comparable end |
#satisfied_text ⇒ Object
9 |
# File 'lib/ruva/expression/equal_greater_less.rb', line 9 def satisfied_text() "less than" end |
#unsatisfied_text ⇒ Object
10 |
# File 'lib/ruva/expression/equal_greater_less.rb', line 10 def unsatisfied_text() "greater than" end |