Class: AsciiPress::Renderer::Rendering
- Inherits:
-
Object
- Object
- AsciiPress::Renderer::Rendering
- Defined in:
- lib/ascii_press.rb
Instance Attribute Summary collapse
-
#data ⇒ Hash
readonly
The adoc file’s attributes standardized with symbol keys and string values.
-
#doc ⇒ Asciidoctor::Document
readonly
The document from the
asciidoctorgem. -
#html ⇒ String
readonly
The HTML resulting from the asciidoc.
-
#tags ⇒ Array <String>
The tags which will be set in
WordPress. -
#title ⇒ String
The title that will be used.
Instance Method Summary collapse
-
#initialize(html, doc, data) ⇒ Rendering
constructor
Create a new Rendering object (intended to be used by Syncers like WordPressSyncer).
Constructor Details
#initialize(html, doc, data) ⇒ Rendering
Create a new AsciiPress::Renderer::Rendering object (intended to be used by Syncers like WordPressSyncer)
40 41 42 43 44 45 |
# File 'lib/ascii_press.rb', line 40 def initialize(html, doc, data) @html = html @doc = doc @data = data @title = doc.doctitle end |
Instance Attribute Details
#data ⇒ Hash (readonly)
Returns The adoc file’s attributes standardized with symbol keys and string values.
31 32 33 |
# File 'lib/ascii_press.rb', line 31 def data @data end |
#doc ⇒ Asciidoctor::Document (readonly)
Returns The document from the asciidoctor gem.
28 29 30 |
# File 'lib/ascii_press.rb', line 28 def doc @doc end |
#html ⇒ String (readonly)
Returns The HTML resulting from the asciidoc.
25 26 27 |
# File 'lib/ascii_press.rb', line 25 def html @html end |
#tags ⇒ Array <String>
Returns The tags which will be set in WordPress.
34 35 36 |
# File 'lib/ascii_press.rb', line 34 def @tags end |
#title ⇒ String
Returns The title that will be used.
37 38 39 |
# File 'lib/ascii_press.rb', line 37 def title @title end |