Class: Ulysses::Printer
- Inherits:
-
Object
- Object
- Ulysses::Printer
- Defined in:
- lib/ulysses/printer.rb
Constant Summary collapse
- SHEET_CONTENT_XPATH =
'/sheet/string[@xml:space="preserve"]'
- SIMPLE_ELEMENTS =
{strong: 'strong', emph: 'em', mark: 'mark', delete: 'del', code: 'code', inlineNative: 'span' }
- HIDDEN_ELEMENTS =
[:inlineComment]
- HIDDEN_TAGS =
[:comment]
Instance Method Summary collapse
-
#initialize(target) ⇒ Printer
constructor
A new instance of Printer.
- #print ⇒ Object
Constructor Details
#initialize(target) ⇒ Printer
Returns a new instance of Printer.
10 11 12 13 14 15 |
# File 'lib/ulysses/printer.rb', line 10 def initialize(target) @target = target @footnotes = [] @annotations = [] @html_entities = HTMLEntities.new end |
Instance Method Details
#print ⇒ Object
17 18 19 |
# File 'lib/ulysses/printer.rb', line 17 def print [print_body, print_footnotes].compact.join("\n") end |