Class: Dryv::Rules::GreaterThanOrEqual
- Inherits:
-
Binary
- Object
- Dryv::Rule
- Binary
- Dryv::Rules::GreaterThanOrEqual
- Defined in:
- lib/dryv/rules/greater_than_or_equal.rb
Instance Attribute Summary
Attributes inherited from Dryv::Rule
Instance Method Summary collapse
Methods inherited from Binary
Methods inherited from Dryv::Rule
#+, #add_error, #and, #clone, #initialize, #or, #then
Constructor Details
This class inherits a constructor from Dryv::Rule
Instance Method Details
#name ⇒ Object
12 13 14 |
# File 'lib/dryv/rules/greater_than_or_equal.rb', line 12 def name 'gt_eq' end |
#valid? ⇒ Boolean
5 6 7 8 9 |
# File 'lib/dryv/rules/greater_than_or_equal.rb', line 5 def valid? return true if left >= right add_error false end |