class Ddr::Derivatives::Generator
@abstract
Constants
- GeneratorResult
Attributes
options[R]
Public Class Methods
new(options=nil)
click to toggle source
# File lib/ddr/derivatives/generators/generator.rb, line 10 def initialize(options=nil) @options = options end
output_extension()
click to toggle source
The extension to use for the output generated. Implemented in each subclass
# File lib/ddr/derivatives/generators/generator.rb, line 22 def self.output_extension raise NotImplementedError end
output_mime_type()
click to toggle source
The mime type of the output generated. Implemented in each subclass.
# File lib/ddr/derivatives/generators/generator.rb, line 16 def self.output_mime_type raise NotImplementedError end
Public Instance Methods
generate(source_path, output_path)
click to toggle source
The actions required to generate the output from the source. Implemented in each subclass.
# File lib/ddr/derivatives/generators/generator.rb, line 28 def generate(source_path, output_path) raise NotImplementedError end