instance method
NilClass#=~
(untyped obj) -> nil
nil =~ object → nil
object.c
View on GitHub ↗
static VALUE
nil_match(VALUE obj1, VALUE obj2)
{
return Qnil;
}
Returns nil.
This method makes it useful to write:
Example
while gets =~ /re/ # ... end