Module: Docx::Elements::Containers::Container
- Defined in:
- lib/docx/containers/container.rb
Instance Method Summary collapse
-
#blank! ⇒ Object
Erase text within an element.
-
#properties ⇒ Object
Relation methods TODO: Create a properties object, include Element.
- #remove! ⇒ Object
Instance Method Details
#blank! ⇒ Object
Erase text within an element
14 15 16 |
# File 'lib/docx/containers/container.rb', line 14 def blank! @node.xpath(".//w:t").each {|t| t.content = '' } end |
#properties ⇒ Object
Relation methods TODO: Create a properties object, include Element
9 10 11 |
# File 'lib/docx/containers/container.rb', line 9 def properties @node.at_xpath("./#{@properties_tag}") end |
#remove! ⇒ Object
18 19 20 |
# File 'lib/docx/containers/container.rb', line 18 def remove! @node.remove end |