Bug #18237 » Remove-unnecessary-checks-in-Range-each-Bug-18237.patch
range.c | ||
---|---|---|
static int
|
||
discrete_object_p(VALUE obj)
|
||
{
|
||
if (rb_obj_is_kind_of(obj, rb_cTime)) return FALSE; /* until Time#succ removed */
|
||
return rb_respond_to(obj, id_succ);
|
||
}
|
||