Class: Parchment::TXT::Paragraph

Inherits:
Paragraph show all
Defined in:
lib/parchment/formats/txt/paragraph.rb

Instance Attribute Summary

Attributes inherited from Paragraph

#default_font_size, #style, #text_runs

Instance Method Summary collapse

Methods inherited from Paragraph

#font_size, #to_html, #to_s

Methods included from Helpers

#html_tag

Constructor Details

#initialize(line, document) ⇒ Paragraph

Returns a new instance of Paragraph.



9
10
11
12
13
14
# File 'lib/parchment/formats/txt/paragraph.rb', line 9

def initialize(line, document)
  @node = line # superlass is expecting @node, so we give it @node
  @document = document
  @style = @document.default_paragraph_style
  super()
end