Class: Goldendocx::Tables::HeaderCell
- Defined in:
- lib/goldendocx/tables/header_cell.rb
Instance Method Summary collapse
-
#initialize(**attributes) ⇒ HeaderCell
constructor
A new instance of HeaderCell.
- #width=(width, type: :dxa) ⇒ Object
Methods inherited from Cell
Methods included from Element
#build_element, #namespace, #tag, #tag_name, #to_element, #to_xml
Methods included from HasChildren
#children, #read_child, #read_children
Methods included from HasAttributes
#assign_attributes, #attributes, #read_attributes
Constructor Details
#initialize(**attributes) ⇒ HeaderCell
Returns a new instance of HeaderCell.
6 7 8 9 |
# File 'lib/goldendocx/tables/header_cell.rb', line 6 def initialize(**attributes) super property.build_shading(value: :clear, color: :auto, fill: DEFAULT_BACKGROUND_COLOR) end |
Instance Method Details
#width=(width, type: :dxa) ⇒ Object
11 12 13 |
# File 'lib/goldendocx/tables/header_cell.rb', line 11 def width=(width, type: :dxa) property.width.assign_attributes(width:, type:) end |