Class: Doc2Text::Odt::XmlNodes::PlainText
- Inherits:
-
Object
- Object
- Doc2Text::Odt::XmlNodes::PlainText
- Includes:
- Node
- Defined in:
- lib/doc2text/odt_xml_namespaces.rb
Instance Attribute Summary collapse
-
#text ⇒ Object
(also: #expand)
Returns the value of attribute text.
Attributes included from Node
#attrs, #children, #name, #parent, #prefix
Instance Method Summary collapse
-
#initialize(text) ⇒ PlainText
constructor
A new instance of PlainText.
Methods included from Node
#close, create_node, #delete, #eql?, #generic?, #has_text?, included, #not_enclosing?, #office_text?, #open, #root?, titleize, #to_s, #xml_name
Constructor Details
#initialize(text) ⇒ PlainText
Returns a new instance of PlainText.
11 12 13 |
# File 'lib/doc2text/odt_xml_namespaces.rb', line 11 def initialize(text) @text = text end |
Instance Attribute Details
#text ⇒ Object Also known as: expand
Returns the value of attribute text.
7 8 9 |
# File 'lib/doc2text/odt_xml_namespaces.rb', line 7 def text @text end |