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