Class: Birt::Core::Property

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

Returns a new instance of Property.

Yields:

  • (_self)

Yield Parameters:



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

def initialize(x_ele)

  super(x_ele) do
    self.name = x_ele.attribute(:name).value
    self.text = x_ele.text
  end

  yield(self) if block_given?
end

Instance Attribute Details

#nameObject

Returns the value of attribute name.



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

def name
  @name
end

#textObject

Returns the value of attribute text.



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

def text
  @text
end