Class: Bulldog::Processor::OneShot

Inherits:
Base
  • Object
show all
Defined in:
lib/bulldog/processor/one_shot.rb

Instance Attribute Summary

Attributes inherited from Base

#attachment, #input_file, #style, #styles

Instance Method Summary collapse

Methods inherited from Base

#name, #record, #value

Constructor Details

#initialize(*args) ⇒ OneShot

Returns a new instance of OneShot.



4
5
6
7
# File 'lib/bulldog/processor/one_shot.rb', line 4

def initialize(*args)
  super
  @styles = StyleSet.new
end

Instance Method Details

#output_file(style_name) ⇒ Object



14
15
16
# File 'lib/bulldog/processor/one_shot.rb', line 14

def output_file(style_name)
  nil
end

#process(*args, &block) ⇒ Object



9
10
11
12
# File 'lib/bulldog/processor/one_shot.rb', line 9

def process(*args, &block)
  @style = nil
  process_style(&block)
end