class RubyDocx::Elements::Paragraph
Public Instance Methods
to_html()
click to toggle source
# File lib/ruby_docx/elements/paragraph.rb, line 8 def to_html if self.elements.size <= 0 "<p> </p>" else "<p>#{self.elements.map(&:to_html).join}</p>" end end
to_s()
click to toggle source
# File lib/ruby_docx/elements/paragraph.rb, line 4 def to_s "#{self.elements.map(&:to_s).join}" end