Class: Voom::Presenters::WebClient::CustomRender
- Inherits:
-
Redcarpet::Render::Safe
- Object
- Redcarpet::Render::Safe
- Voom::Presenters::WebClient::CustomRender
- Defined in:
- lib/voom/presenters/web_client/custom_render.rb
Constant Summary collapse
- BR =
include Redcarpet::Render::SmartyPants
'<br/>'
Instance Method Summary collapse
-
#initialize(extensions = {}) ⇒ CustomRender
constructor
A new instance of CustomRender.
- #paragraph(text) ⇒ Object
- #postprocess(full_document) ⇒ Object
Constructor Details
#initialize(extensions = {}) ⇒ CustomRender
Returns a new instance of CustomRender.
8 9 10 |
# File 'lib/voom/presenters/web_client/custom_render.rb', line 8 def initialize(extensions = {}) super(extensions) end |
Instance Method Details
#paragraph(text) ⇒ Object
12 13 14 |
# File 'lib/voom/presenters/web_client/custom_render.rb', line 12 def paragraph(text) text + BR end |
#postprocess(full_document) ⇒ Object
16 17 18 |
# File 'lib/voom/presenters/web_client/custom_render.rb', line 16 def postprocess(full_document) strip_trailing_br(colorize(full_document)) end |