Class: Birt::Core::TableRow

Inherits:
BaseReport show all
Defined in:
lib/birt/core/table/table_row.rb

Instance Attribute Summary collapse

Attributes inherited from BaseReport

#id

Instance Method Summary collapse

Methods inherited from BaseReport

#elem_text

Constructor Details

#initialize(x_ele) {|_self| ... } ⇒ TableRow

Returns a new instance of TableRow.

Yields:

  • (_self)

Yield Parameters:



5
6
7
8
9
10
11
12
13
# File 'lib/birt/core/table/table_row.rb', line 5

def initialize(x_ele)
  self.row_cells = Array.new

  super(x_ele) do
    x_ele.get_elements(xpath="cell").each { |cell| self.row_cells.push Birt::Core::TableRowCell.new(cell) }
  end

  yield(self) if block_given?
end

Instance Attribute Details

#row_cellsObject

Returns the value of attribute row_cells.



3
4
5
# File 'lib/birt/core/table/table_row.rb', line 3

def row_cells
  @row_cells
end