Sha256: 91ebb32590ba68c0969ddd99d66cfed539919c6798ef0803c1f552b5bd9e701a
Contents?: true
Size: 531 Bytes
Versions: 3
Compression:
Stored size: 531 Bytes
Contents
# frozen_string_literal: true module OoxmlParser # Class for data from `Override` tag class ContentTypeOverride < OOXMLDocumentObject # @return [String] content type attr_reader :content_type # @return [String] part name attr_reader :part_name def parse(node) node.attributes.each do |key, value| case key when 'ContentType' @content_type = value.value.to_s when 'PartName' @part_name = value.value.to_s end end self end end end
Version data entries
3 entries across 3 versions & 1 rubygems