Method: Docx::Elements::Element#parent
- Defined in:
- lib/docx/elements/element.rb
#parent(type = '*') ⇒ Object
TODO: Should create a docx object from this
20 21 22 |
# File 'lib/docx/elements/element.rb', line 20 def parent(type = '*') @node.at_xpath("./parent::#{type}") end |