Method: DBM#update
- Defined in:
- ext/dbm/dbm.c
#update(obj) ⇒ Object
Updates the database with multiple values from the specified object. Takes any object which implements the each_pair method, including Hash and DBM objects.
615 616 617 618 619 620 |
# File 'ext/dbm/dbm.c', line 615
static VALUE
fdbm_update(VALUE obj, VALUE other)
{
rb_block_call(other, rb_intern("each_pair"), 0, 0, update_i, obj);
return obj;
}
|