Sha256: d1205bc4c74f90d5d0658c184a5bae7352c6a82a61ab72f205868f30e9b6c434
Contents?: true
Size: 859 Bytes
Versions: 8
Compression:
Stored size: 859 Bytes
Contents
# frozen_string_literal: true module OoxmlParser # Class for describing `gridSpan` tag class GridSpan < OOXMLDocumentObject # @return [String] type of grid span attr_reader :type # @return [String] value of grid span merged cells attr_reader :value def initialize(parent: nil) @type = 'horizontal' @parent = parent end alias count_of_merged_cells value extend Gem::Deprecate deprecate :type, 'GridSpan always horizontal', 2069, 1 deprecate :count_of_merged_cells, 'value', 2069, 1 # Parse Grid Span data # @param [Nokogiri::XML:Element] node with GridSpan data # @return [GridSpan] value of GridSpan def parse(node) node.attributes.each do |key, value| case key when 'val' @value = value.value.to_i end end self end end end
Version data entries
8 entries across 8 versions & 1 rubygems