is an integer in a range : Range include « Range « Ruby






is an integer in a range



(1..25) === 14 # => true, in range
(1..25) === 26 # => false, out of range

 








Related examples in the same category

1.Test if something is included in the set of objects specified by the range.
2.Being a lowercase letter
3.is an integer in an exclusive range
4.Check the range belongings
5.Range containability check
6.Range pattern match