Sha256: af95caa05f9e8e4c57d159eaf481622fb1ed267fb365c0b14ef78e89fc9f2f5b
Contents?: true
Size: 495 Bytes
Versions: 9
Compression:
Stored size: 495 Bytes
Contents
module WebTranslateIt module Safe class Backup attr_accessor :id, :kind, :filename, :extension, :command, :compressed, :timestamp, :path def initialize(opts = {}) opts.each do |k, v| send("#{k}=", v) end end def run(config, *mods) mods.each do |mod| mod = mod.to_s mod[0] = mod[0..0].upcase WebTranslateIt::Safe.const_get(mod).new(config, self).process end end end end end
Version data entries
9 entries across 9 versions & 1 rubygems