class OoxmlParser::ShapePlaceholder
Class for data about ‘ph` node
Attributes
Public Instance Methods
Source
# File lib/ooxml_parser/common_parser/common_data/alternate_content/drawing/graphic/shape/docx_shape/non_visual_shape_properties/non_visual_properties/shape_placeholder.rb, line 11 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
Parse ShapePlaceholder
object @param node [Nokogiri::XML:Element] node to parse @return [ShapePlaceholder] result of parsing