class Rake::Delphi::HashesTask
Public Class Methods
new(task, files, alg)
click to toggle source
Calls superclass method
Rake::Delphi::BasicTask::new
# File lib/rake/common/hashtask.rb, line 25 def initialize(task, files, alg) super(task) @hashes = {} calc_hashes(files, alg) end
Public Instance Methods
calc_hashes(files, alg)
click to toggle source
# File lib/rake/common/hashtask.rb, line 31 def calc_hashes(files, alg) files = [files] unless files.kind_of?(Array) files.each do |f| @hashes[f] = { alg.upcase => HashTask.new(f, alg).digest } end end
to_hash()
click to toggle source
# File lib/rake/common/hashtask.rb, line 38 def to_hash @hashes end