Ruby Newbie homepage Ruby Newbie homepage

How to use

Quick guide

Official content
Returns true if there are no hash entries, false otherwise:
{}.empty? # => true
{foo: 0, bar: 1, baz: 2}.empty? # => false
 
               static VALUE
rb_hash_empty_p(VALUE hash)
{
    return RBOOL(RHASH_EMPTY_P(hash));
}
            

Was this page useful?