Method: Digest::Instance#hexdigest!
- Defined in:
- digest.c
#hexdigest! ⇒ String
Returns the resulting hash value in a hex-encoded form and resets the digest to the initial state.
311 312 313 314 315 316 317 318 |
# File 'digest.c', line 311
static VALUE
rb_digest_instance_hexdigest_bang(VALUE self)
{
VALUE value = rb_funcall(self, id_finish, 0);
rb_funcall(self, id_reset, 0);
return hexencode_str_new(value);
}
|