Class: WriteDown::Converter::Org
- Defined in:
- lib/write_down/converter/org.rb
Overview
基类, 定义了一些接口
Instance Method Summary collapse
-
#initialize(model) ⇒ Org
constructor
A new instance of Org.
- #render ⇒ Object
Constructor Details
#initialize(model) ⇒ Org
Returns a new instance of Org.
8 9 10 |
# File 'lib/write_down/converter/org.rb', line 8 def initialize(model) @content = model.content end |
Instance Method Details
#render ⇒ Object
12 13 14 |
# File 'lib/write_down/converter/org.rb', line 12 def render PandocRuby.convert(@content, { f: :org, to: :html5}, 'no-highlight') end |