Class: Sanatio::BuiltIn::LessThan
- Defined in:
- lib/sanatio/built-in/less_than.rb
Instance Method Summary collapse
-
#initialize(value) ⇒ LessThan
constructor
A new instance of LessThan.
- #reason(_) ⇒ Object
Methods inherited from Compare
Constructor Details
#initialize(value) ⇒ LessThan
Returns a new instance of LessThan.
6 7 8 |
# File 'lib/sanatio/built-in/less_than.rb', line 6 def initialize(value) super(value, :<) end |
Instance Method Details
#reason(_) ⇒ Object
10 11 12 |
# File 'lib/sanatio/built-in/less_than.rb', line 10 def reason(_) :greater_than_or_equal_to end |