module Shrine::Plugins::Signature::InstanceMethods
Public Instance Methods
calculate_signature(io, algorithm, format: :hex)
click to toggle source
Calculates ‘algorithm` hash of the contents of the IO object, and encodes it into `format`.
# File lib/shrine/plugins/signature.rb, line 47 def calculate_signature(io, algorithm, format: :hex) self.class.calculate_signature(io, algorithm, format: format) end