Class: BPM::FormatProcessor

Inherits:
PluginProcessor show all
Defined in:
lib/bpm/pipeline/format_processor.rb

Overview

A Template that will use a format plugin to compile the content Register a subclass of the template with the with_plugin

Class Method Summary collapse

Methods inherited from PluginProcessor

#evaluate, method_name, plugin_name, #prepare

Class Method Details

.default_mime_typeObject



21
22
23
# File 'lib/bpm/pipeline/format_processor.rb', line 21

def self.default_mime_type
  @plugin_opts["mime:default"]
end

.extensionObject



17
18
19
# File 'lib/bpm/pipeline/format_processor.rb', line 17

def self.extension
  @extension
end

.with_plugin(ext, plugin_opts) ⇒ Object



9
10
11
12
13
14
15
# File 'lib/bpm/pipeline/format_processor.rb', line 9

def self.with_plugin(ext, plugin_opts)
  ret = super plugin_opts, 'compileFormat'
  ret.instance_eval do
    @extension    = ext
  end
  ret
end