Sha256: a5f370eba7150f1d7d148a3ca478384920d80e8e9f5eef619010624a018ee525

Contents?: true

Size: 707 Bytes

Versions: 4

Compression:

Stored size: 707 Bytes

Contents

module OoxmlParser
  # Class for parsing `w:tblStyleRowBandSize` object
  # When a style specifies the format for a band for
  # rows in a table (a set of contiguous rows), this
  # specifies the number of rows in a band.
  class TableStyleRowBandSize < OOXMLDocumentObject
    # @return [Integer] value of table style column band size
    attr_accessor :value

    # Parse TableStyleRowBandSize
    # @param [Nokogiri::XML:Node] node with TableStyleRowBandSize
    # @return [TableStyleColumnBandSize] result of parsing
    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

4 entries across 4 versions & 1 rubygems

Version Path
ooxml_parser-0.4.1 lib/ooxml_parser/common_parser/common_data/table/properties/table_style_row_band_size.rb
ooxml_parser-0.4.0 lib/ooxml_parser/common_parser/common_data/table/properties/table_style_row_band_size.rb
ooxml_parser-0.3.0 lib/ooxml_parser/common_parser/common_data/table/properties/table_style_row_band_size.rb
ooxml_parser-0.2.0 lib/ooxml_parser/common_parser/common_data/table/properties/table_style_row_band_size.rb