Module: Docx::Elements::Containers::Container

Included in:
Paragraph, Table, TableCell, TableColumn, TableRow, TextRun
Defined in:
lib/docx/containers/container.rb

Instance Method Summary collapse

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

#propertiesObject

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