Ruby Newbie homepage Ruby Newbie homepage

How to use

Quick guide

Official content
Returns true if the length of self is zero, false otherwise:
"hello".empty? # => false
" ".empty? # => false
"".empty? # => true
 
               static VALUE
rb_str_empty(VALUE str)
{
    return RBOOL(RSTRING_LEN(str) == 0);
}
            

Was this page useful?