Class: Birt::Core::TextProperty
- Inherits:
-
BaseReport
- Object
- BaseReport
- Birt::Core::TextProperty
- Defined in:
- lib/birt/core/table/text_property.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
-
#text ⇒ Object
Returns the value of attribute text.
Attributes inherited from BaseReport
Instance Method Summary collapse
-
#initialize(x_ele) {|_self| ... } ⇒ TextProperty
constructor
A new instance of TextProperty.
Methods inherited from BaseReport
Constructor Details
#initialize(x_ele) {|_self| ... } ⇒ TextProperty
Returns a new instance of TextProperty.
5 6 7 8 9 10 11 12 13 |
# File 'lib/birt/core/table/text_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
#name ⇒ Object
Returns the value of attribute name.
2 3 4 |
# File 'lib/birt/core/table/text_property.rb', line 2 def name @name end |
#text ⇒ Object
Returns the value of attribute text.
3 4 5 |
# File 'lib/birt/core/table/text_property.rb', line 3 def text @text end |