class PnoteClient::Documents::Hml::Rectangle
Attributes
paragraph[R]
Public Class Methods
from_tag(rect_tag)
click to toggle source
# File lib/pnote_client/documents/hml/rectangle.rb, line 8 def self.from_tag(rect_tag) rect = self.new pg_tags = rect_tag.xpath("DRAWINGOBJECT/DRAWTEXT/PARALIST/P") pg_tags.each do |pg_tag| rect.add_paragraph(Paragraph.from_tag(pg_tag)) end return rect end
new()
click to toggle source
# File lib/pnote_client/documents/hml/rectangle.rb, line 21 def initialize @paragraphs = [] end
Public Instance Methods
add_paragraph(new_paragraph)
click to toggle source
# File lib/pnote_client/documents/hml/rectangle.rb, line 25 def add_paragraph(new_paragraph) @paragraphs << new_paragraph end
content()
click to toggle source
# File lib/pnote_client/documents/hml/rectangle.rb, line 29 def content @paragraphs.map {|pg| pg.content}.join("\n") end
textable?()
click to toggle source
# File lib/pnote_client/documents/hml/rectangle.rb, line 33 def textable? return true end