Class: Doc2Text::XmlBasedDocument::XmlNodes::PlainText

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

Instance Attribute Summary collapse

Attributes inherited from Node

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

Instance Method Summary collapse

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

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