Sha256: b2f0b3b90f9b2e348adab8a715315a6036701be190da29cf78bc3113262249c2
Contents?: true
Size: 229 Bytes
Versions: 23
Compression:
Stored size: 229 Bytes
Contents
# frozen_string_literal: true # addon for the Atome class class Atome def calculate_sha(string) if RUBY_ENGINE.downcase == 'opal' `sha256(#{string})` else Digest::SHA256.hexdigest(string) end end end
Version data entries
23 entries across 23 versions & 1 rubygems