obj.between?(min, max) â true or false
Instance Public methods
Returns false if obj <=>
min is less than zero or if anObject
<=> max is greater than zero, true
otherwise.
3.between?(1, 5) #=> true
6.between?(1, 5) #=> false
'cat'.between?('ant', 'dog') #=> true
'gnu'.between?('ant', 'dog') #=> false