End of Life Ruby 3.2 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
instance method
Digest::Instance#new
digest_obj.new → another_digest_obj
ext/digest/digest.c
View on GitHub ↗
static VALUE
rb_digest_instance_new(VALUE self)
{
VALUE clone = rb_obj_clone(self);
rb_funcall(clone, id_reset, 0);
return clone;
}
Returns a new, initialized copy of the digest object. Equivalent to digest_obj.clone().reset().