class OoxmlParser::ShapePlaceholder
Class for data about `ph` node
Attributes
has_custom_prompt[RW]
type[RW]
Public Instance Methods
parse(node)
click to toggle source
Parse ShapePlaceholder
object @param node [Nokogiri::XML:Element] node to parse @return [ShapePlaceholder] result of parsing
# 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