class OoxmlParser::RunObject

Class for parsing `w:object`

Attributes

ole_object[RW]

@return [OleObject] ole object of object

Public Instance Methods

parse(node) click to toggle source

Parse RunObject object @param node [Nokogiri::XML:Element] node to parse @return [RunObject] result of parsing

# File lib/ooxml_parser/docx_parser/docx_data/document_structure/docx_paragraph/docx_paragraph_run/object.rb, line 13
def parse(node)
  node.xpath('*').each do |node_child|
    case node_child.name
    when 'OLEObject'
      @ole_object = OleObject.new(parent: self).parse(node_child)
    end
  end
  self
end