Public Instance methods
calculate_signature(io, algorithm, format: :hex)
Calculates algorithm
hash of the contents of the IO object, and encodes it into format
.
[show source]
# File lib/shrine/plugins/signature.rb 47 def calculate_signature(io, algorithm, format: :hex) 48 self.class.calculate_signature(io, algorithm, format: format) 49 end