Class: Rubyword::Element::Tr
- Inherits:
-
Object
- Object
- Rubyword::Element::Tr
- Defined in:
- lib/rubyword/element/table.rb
Instance Attribute Summary collapse
-
#texts ⇒ Object
Returns the value of attribute texts.
Instance Method Summary collapse
Instance Attribute Details
#texts ⇒ Object
Returns the value of attribute texts.
52 53 54 |
# File 'lib/rubyword/element/table.rb', line 52 def texts @texts end |
Instance Method Details
#th(text, style = nil) ⇒ Object
53 54 55 56 |
# File 'lib/rubyword/element/table.rb', line 53 def th(text, style=nil) @texts ||= [] @texts << { text: text, style: style } end |