Module: Shrine::Plugins::Signature::InstanceMethods
- Defined in:
- lib/shrine/plugins/signature.rb
Instance Method Summary collapse
-
#calculate_signature(io, algorithm, format: :hex) ⇒ Object
Calculates
algorithmhash of the contents of the IO object, and encodes it intoformat.
Instance Method Details
#calculate_signature(io, algorithm, format: :hex) ⇒ Object
Calculates algorithm hash of the contents of the IO object, and
encodes it into format.
47 48 49 |
# File 'lib/shrine/plugins/signature.rb', line 47 def calculate_signature(io, algorithm, format: :hex) self.class.calculate_signature(io, algorithm, format:) end |