Class: Synqa::Sha256Command

Inherits:
HashCommand show all
Defined in:
lib/synqa.rb

Overview

Hash command for sha256, which generates a 64 hexadecimal digit hash, and outputs one character between the hash and the file name, and which requires a “-r” argument to put the hash value first.

Instance Attribute Summary

Attributes inherited from HashCommand

#command, #length, #spacerLen

Instance Method Summary collapse

Methods inherited from HashCommand

#parseFileHashLine, #to_s

Constructor Details

#initializeSha256Command

Returns a new instance of Sha256Command.



100
101
102
# File 'lib/synqa.rb', line 100

def initialize
  super(["sha256", "-r"], 64, 1)
end