Class: Doc2Text::XmlBasedDocument::XmlNodes::PlainText
- Defined in:
- lib/doc2text/generic_xml_nodes.rb
Direct Known Subclasses
Docx::XmlNodes::PlainText, Odt::XmlNodes::PlainText, Pptx::XmlNodes::PlainText
Instance Attribute Summary collapse
-
#text ⇒ Object
(also: #expand)
Returns the value of attribute text.
Attributes inherited from Node
#attrs, #children, #name, #parent, #prefix
Instance Method Summary collapse
-
#initialize(text) ⇒ PlainText
constructor
A new instance of PlainText.
Methods inherited from Node
#close, #delete, #eql?, #generic?, #has_text?, inherited, #open, #root?, #to_s, #xml_name
Constructor Details
#initialize(text) ⇒ PlainText
Returns a new instance of PlainText.
72 73 74 |
# File 'lib/doc2text/generic_xml_nodes.rb', line 72 def initialize(text) @text = text end |
Instance Attribute Details
#text ⇒ Object Also known as: expand
Returns the value of attribute text.
68 69 70 |
# File 'lib/doc2text/generic_xml_nodes.rb', line 68 def text @text end |