Module | Comparable |
In: |
lib/facet/comparable/at_least.rb
lib/facet/comparable/at_most.rb lib/facet/comparable/bound_by.rb |
Returns the lower of self or x.
require 'facet/numeric/bound_by' 4.at_least(5) #=> 5 6.at_least(5) #=> 6
Returns the greater of self or x.
require 'facet/numeric/bound_by' 4.at_most(5) #=> 4 6.at_most(5) #=> 5