Sha256: dc4669efe835ef82e082a66692e283cabdc0d09449282394dbd9d2b4204c515f
Contents?: true
Size: 1005 Bytes
Versions: 9
Compression:
Stored size: 1005 Bytes
Contents
module Attached class Processor attr_accessor :file attr_accessor :options attr_accessor :attachment # Create and run a processor. # # Parameters: # # * file - The file to be processed. # * options - The options to be applied to the processing. # * attachment - The attachment the processor is being run for. def self.process(file, options = {}, attachment = nil) new(file, options, attachment).process end # Create a processor. # # Parameters: # # * file - The file to be processed. # * options - The options to be applied to the processing. # * attachment - The attachment the processor is being run for. def initialize(file, options = {}, attachment = nil) @file = file @options = options @attachment = attachment end # Run the processor. def process raise NotImplementedError.new end end end
Version data entries
9 entries across 9 versions & 1 rubygems