class Parchment::TXT::Paragraph
Public Class Methods
new(line, document)
click to toggle source
Calls superclass method
Parchment::Paragraph::new
# 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
Private Instance Methods
set_text_runs()
click to toggle source
# File lib/parchment/formats/txt/paragraph.rb, line 18 def set_text_runs @text_runs = [Parchment::TXT::TextRun.new(@node, self, @document)] end