rng.include?(obj) â true or false
Instance Public methods
Returns true
if obj
is an element of the range,
false
otherwise. If begin and end are numeric, comparison is
done according to the magnitude of the values.
("a".."z").include?("g") #=> true ("a".."z").include?("A") #=> false ("a".."z").include?("cc") #=> false
Please login to continue.