Module: Inkcite::PostProcessor
- Included in:
- Renderer::TopicList
- Defined in:
- lib/inkcite/post_processor.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.run_all(html, ctx) ⇒ Object
8 9 10 |
# File 'lib/inkcite/post_processor.rb', line 8 def self.run_all html, ctx ctx.post_processors.inject(html) { |h, pp| pp.post_process(h, ctx) } end |
Instance Method Details
#post_process(html, ctx) ⇒ Object
4 5 6 |
# File 'lib/inkcite/post_processor.rb', line 4 def post_process html, ctx raise 'Extending class must implement process(html, ctx)' end |