member?(p1)
public
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")
("a".."z").include?("A")
("a".."z").include?("cc")
Show source
static VALUE
range_include(VALUE range, VALUE val)
{
VALUE ret = range_include_internal(range, val);
if (ret != Qundef) return ret;
return rb_call_super(1, &val);
}