Class: Asciidoctor::Document
- Inherits:
-
Object
- Object
- Asciidoctor::Document
- Defined in:
- lib/asciidoctor-multipage.rb
Instance Attribute Summary collapse
-
#catalog ⇒ Object
writeonly
Allow writing to the :catalog attribute in order to duplicate refs list to new pages.
-
#mp_root ⇒ Object
A pointer to the original converter (first converter instantiated to convert the original document).
-
#mplevel ⇒ Object
Allow the section type to be saved (for when a Section becomes a Document).
-
#processed ⇒ Object
Allow the current Document to be marked as processed by this extension.
-
#sectnum(delimiter = nil, append = nil) ⇒ Object
Return the saved section number for this Document object (which was originally a Section).
Instance Method Summary collapse
Instance Attribute Details
#catalog=(value) ⇒ Object (writeonly)
Allow writing to the :catalog attribute in order to duplicate refs list to new pages
43 44 45 |
# File 'lib/asciidoctor-multipage.rb', line 43 def catalog=(value) @catalog = value end |
#mp_root ⇒ Object
A pointer to the original converter (first converter instantiated to convert the original document). As we create additional documents ourselves, AsciiDoctor will instantiate additional instances of MultipageHtml5Converter for each created document. These instances need to share state, so they can use the original converter instance for that purpose.
62 63 64 |
# File 'lib/asciidoctor-multipage.rb', line 62 def mp_root @mp_root end |
#mplevel ⇒ Object
Allow the section type to be saved (for when a Section becomes a Document)
46 47 48 |
# File 'lib/asciidoctor-multipage.rb', line 46 def mplevel @mplevel end |
#processed ⇒ Object
Allow the current Document to be marked as processed by this extension
49 50 51 |
# File 'lib/asciidoctor-multipage.rb', line 49 def processed @processed end |
#sectnum(delimiter = nil, append = nil) ⇒ Object
Return the saved section number for this Document object (which was originally a Section)
81 82 83 |
# File 'lib/asciidoctor-multipage.rb', line 81 def sectnum(delimiter = nil, append = nil) @sectnum end |
Instance Method Details
#sections? ⇒ Boolean
75 76 77 |
# File 'lib/asciidoctor-multipage.rb', line 75 def sections? return true end |