module Shrine::Plugins::Signature::InstanceMethods

  1. lib/shrine/plugins/signature.rb

Methods

Public Instance

  1. calculate_signature

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, line 53
def calculate_signature(io, algorithm, format: :hex)
  self.class.calculate_signature(io, algorithm, format: format)
end