Class: Docx::Elements::Text
- Inherits:
-
Object
- Object
- Docx::Elements::Text
show all
- Includes:
- Element
- Defined in:
- lib/docx/elements/text.rb
Constant Summary
Constants included
from Element
Element::DEFAULT_TAG
Instance Attribute Summary
Attributes included from Element
#node
Class Method Summary
collapse
Instance Method Summary
collapse
Methods included from Element
#append_to, #at_xpath, #copy, #html_tag, included, #insert_after, #insert_before, #parent, #parent_paragraph, #prepend_to, #xpath
Constructor Details
#initialize(node) ⇒ Text
Returns a new instance of Text.
18
19
20
|
# File 'lib/docx/elements/text.rb', line 18
def initialize(node)
@node = node
end
|
Class Method Details
.tag ⇒ Object
6
7
8
|
# File 'lib/docx/elements/text.rb', line 6
def self.tag
't'
end
|
Instance Method Details
#content ⇒ Object
10
11
12
|
# File 'lib/docx/elements/text.rb', line 10
def content
@node.content
end
|
#content=(args) ⇒ Object
14
15
16
|
# File 'lib/docx/elements/text.rb', line 14
def content=(args)
@node.content = args
end
|