Class: Birt::Core::TableDetail

Inherits:
BaseReport show all
Defined in:
lib/birt/core/table/table_detail.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| ... } ⇒ TableDetail

Returns a new instance of TableDetail.

Yields:

  • (_self)

Yield Parameters:



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

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

  super(x_ele) do
    x_ele.get_elements(xpath="row").each { |row| self.rows.push Birt::Core::TableRow.new(row) }
  end

  yield(self) if block_given?
end

Instance Attribute Details

#rowsObject

Returns the value of attribute rows.



2
3
4
# File 'lib/birt/core/table/table_detail.rb', line 2

def rows
  @rows
end