Sha256: 73c4f9c50756c252502d13910364c87e0ea04c3b4bc003d9c6461632925f0a19
Contents?: true
Size: 595 Bytes
Versions: 48
Compression:
Stored size: 595 Bytes
Contents
# frozen_string_literal: true module OoxmlParser # Class for data about `ph` node class ShapePlaceholder < OOXMLDocumentObject attr_accessor :type, :has_custom_prompt # Parse ShapePlaceholder object # @param node [Nokogiri::XML:Element] node to parse # @return [ShapePlaceholder] result of parsing def parse(node) node.attributes.each do |key, value| case key when 'type' @type = value.value.to_sym when 'hasCustomPrompt' @has_custom_prompt = attribute_enabled?(node) end end self end end end
Version data entries
48 entries across 48 versions & 1 rubygems