Class: Rubyword::Element::Tr

Inherits:
Object
  • Object
show all
Defined in:
lib/rubyword/element/table.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#textsObject

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