class PnoteClient::Documents::Hml::TableRow

Attributes

cells[R]

Public Class Methods

from_tag(row_tag) click to toggle source
# File lib/pnote_client/documents/hml/table_row.rb, line 7
def self.from_tag(row_tag)
  row = self.new

  cell_tags = row_tag.xpath("CELL")
  cell_tags.each do |cell_tag|
    row.add_cell(TableCell.from_tag(cell_tag))
  end

  return row
end
new() click to toggle source
# File lib/pnote_client/documents/hml/table_row.rb, line 20
def initialize
  @cells = []
end

Public Instance Methods

add_cell(cell) click to toggle source
# File lib/pnote_client/documents/hml/table_row.rb, line 24
def add_cell(cell)
  @cells << cell
end
content() click to toggle source
# File lib/pnote_client/documents/hml/table_row.rb, line 28
def content
  return @cells.map {|cell| cell.content}
end