Maintenance Ruby 3.4 gets fixes, but no new features. Switch to Ruby 4.0 →
instance method
Digest::Instance#digest!
() -> ::String
digest_obj.digest! → string
ext/digest/digest.c
View on GitHub ↗
static VALUE
rb_digest_instance_digest_bang(VALUE self)
{
VALUE value = rb_funcall(self, id_finish, 0);
rb_funcall(self, id_reset, 0);
return value;
}
Returns the resulting hash value and resets the digest to the initial state.