def chomp(sep = $/) "ruby\n".chomp #=> "ruby" end
Returns a new string with the trailing newline removed.
Maintenance Ruby 3.4 gets fixes, but no new features. Switch to Ruby 4.0 →
Classes for calculating message digests using the SHA-256/384/512 Secure Hash Algorithm(s) by NIST (the US’ National Institute of Standards and Technology), described in FIPS PUB 180-2.
Hash
See SHA2.
SHA2