crystal backwards compatibility

This commit is contained in:
Didactic Drunk 2021-03-18 11:11:19 -07:00
parent c96b01f712
commit f9de09f2d7

View File

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