class NilClass

Public Instance Methods

each_line { |l| ... } → nil click to toggle source

This spares testing for nil when checking strings.

VALUE
rb_nil_each_line( VALUE str)
{
    RETURN_ENUMERATOR( str, 0, 0);
    return Qnil;
}
nonzero? → nil click to toggle source

This spares testing for nil when checking numbers.

VALUE
rb_nil_notempty_p( VALUE str)
{
    return Qnil;
}
notempty? → nil click to toggle source

This spares testing for nil when checking strings.

VALUE
rb_nil_notempty_p( VALUE str)
{
    return Qnil;
}