Class: Doc2Text::Odt::XmlNodes::PlainText

Inherits:
Object
  • Object
show all
Includes:
Node
Defined in:
lib/doc2text/odt_xml_namespaces.rb

Instance Attribute Summary collapse

Attributes included from Node

#attrs, #children, #name, #parent, #prefix

Instance Method Summary collapse

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

#textObject 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