Class: Hash

Inherits:
Object show all
Defined in:
(unknown)

Instance Method Summary collapse

Instance Method Details

#blank?Boolean

Returns:

  • (Boolean)


54
55
56
57
# File 'ext/faster_support/core_ext/object/blank/object_blank.c', line 54

static VALUE rb_hash_blank(VALUE self)
{
  return RHASH_EMPTY_P(self) ? Qtrue : Qfalse;
}

#present?Boolean

Returns:

  • (Boolean)


59
60
61
62
# File 'ext/faster_support/core_ext/object/blank/object_blank.c', line 59

static VALUE rb_hash_present(VALUE self)
{
  return RB_NEGATE(rb_hash_blank(self));
}