Class: OoxmlParser::TableCellStyle
- Inherits:
-
Object
- Object
- OoxmlParser::TableCellStyle
- Defined in:
- lib/ooxml_parser/common_parser/common_data/table/properties/whole_table/table_cell_style.rb
Instance Attribute Summary collapse
-
#borders ⇒ Object
Returns the value of attribute borders.
-
#fill ⇒ Object
Returns the value of attribute fill.
Class Method Summary collapse
Instance Attribute Details
#borders ⇒ Object
Returns the value of attribute borders.
5 6 7 |
# File 'lib/ooxml_parser/common_parser/common_data/table/properties/whole_table/table_cell_style.rb', line 5 def borders @borders end |
#fill ⇒ Object
Returns the value of attribute fill.
5 6 7 |
# File 'lib/ooxml_parser/common_parser/common_data/table/properties/whole_table/table_cell_style.rb', line 5 def fill @fill end |
Class Method Details
.parse(cell_style_node) ⇒ Object
7 8 9 10 11 12 13 14 15 16 17 18 |
# File 'lib/ooxml_parser/common_parser/common_data/table/properties/whole_table/table_cell_style.rb', line 7 def self.parse(cell_style_node) cell_style = TableCellStyle.new cell_style_node.xpath('*').each do |cell_node_child| case cell_node_child.name when 'tcBdr' cell_style.borders = Borders.parse(cell_node_child) when 'fill' cell_style.fill = PresentationFill.parse(cell_node_child) end end cell_style end |