class OoxmlParser::GridSpan
Class for describing ‘gridSpan` tag
Attributes
@return [String] type of grid span
@return [String] value of grid span merged cells
Public Class Methods
Source
# File lib/ooxml_parser/common_parser/common_data/table/row/cell/grid_span.rb, line 11 def initialize(parent: nil) @type = 'horizontal' super end
Calls superclass method
OoxmlParser::OOXMLDocumentObject::new
Public Instance Methods
Source
# File lib/ooxml_parser/common_parser/common_data/table/row/cell/grid_span.rb, line 19 def parse(node) node.attributes.each do |key, value| case key when 'val' @value = value.value.to_i end end self end
Parse Grid Span data @param [Nokogiri::XML:Element] node with GridSpan
data @return [GridSpan] value of GridSpan