crystal backwards compatibility

master
Didactic Drunk 2021-03-18 11:11:19 -07:00
parent c96b01f712
commit f9de09f2d7
1 changed files with 2 additions and 0 deletions

View File

@ -17,6 +17,8 @@ module Sodium::Digest
# digest.hexfinal => String
# ```
class Blake2b < ::Digest
{{ Digest.has_constant?(:Base) ? "::Base" : "" }} # Crystal < 0.36 compatible
include Wipe
Log = ::Log.for self