method

member?

v1_9_1_378 - Show latest stable - Class: Range
member?(p1)
public

Returns true if obj is an element of rng, false otherwise. If beg and end are numeric, comparison is done according magnitude of values.

("a".."z").include?("g")  # => true
("a".."z").include?("A")  # => false