Class: Codex::PostProcessor

Inherits:
Object
  • Object
show all
Defined in:
lib/codex/post_processor.rb

Direct Known Subclasses

AddTitleSlides, SlidesProcessor

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(html) ⇒ PostProcessor

Returns a new instance of PostProcessor.



8
9
10
# File 'lib/codex/post_processor.rb', line 8

def initialize(html)
  @html = html
end

Instance Attribute Details

#htmlObject (readonly)

Returns the value of attribute html.



7
8
9
# File 'lib/codex/post_processor.rb', line 7

def html
  @html
end

Class Method Details

.registerObject

Call this in your subclass to register the PostProcessor



4
5
6
# File 'lib/codex/post_processor.rb', line 4

def self.register
  PostProcessors.instance << self
end

Instance Method Details

#processObject



11
12
13
# File 'lib/codex/post_processor.rb', line 11

def process
  raise "Overwrite me!"
end