Class: Codex::PostProcessor
- Inherits:
-
Object
- Object
- Codex::PostProcessor
- Defined in:
- lib/codex/post_processor.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#html ⇒ Object
readonly
Returns the value of attribute html.
Class Method Summary collapse
-
.register ⇒ Object
Call this in your subclass to register the PostProcessor.
Instance Method Summary collapse
-
#initialize(html) ⇒ PostProcessor
constructor
A new instance of PostProcessor.
- #process ⇒ Object
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
#html ⇒ Object (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
.register ⇒ Object
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
#process ⇒ Object
11 12 13 |
# File 'lib/codex/post_processor.rb', line 11 def process raise "Overwrite me!" end |