Sha256: 21e4a86c110eb4e8371a865e4b9640dbc7783a91abb24319c4f7d2e27a2094b3
Contents?: true
Size: 1.12 KB
Versions: 1
Compression:
Stored size: 1.12 KB
Contents
module OoxmlParser # Class for describing Table Border Propertie class TableBorders < OOXMLDocumentObject # @return [BordersProperties] left border propertie attr_accessor :left # @return [BordersProperties] right border propertie attr_accessor :right # @return [BordersProperties] top border propertie attr_accessor :top # @return [BordersProperties] bottom border propertie attr_accessor :bottom # Parse Table Borders data # @param [Nokogiri::XML:Element] node with Table Borders data # @return [TableBorders] value of Table Borders data def self.parse(node) borders = TableBorders.new node.xpath('*').each do |cell_borders_node| case cell_borders_node.name when 'left' borders.left = BordersProperties.parse(cell_borders_node) when 'top' borders.top = BordersProperties.parse(cell_borders_node) when 'right' borders.right = BordersProperties.parse(cell_borders_node) when 'bottom' borders.bottom = BordersProperties.parse(cell_borders_node) end end borders end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ooxml_parser-0.1.2 | lib/ooxml_parser/common_parser/common_data/table/table_properties/table_borders.rb |