Class: Docx::Elements::Text

Inherits:
Object
  • Object
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, #copy, #html_tag, included, #insert_after, #insert_before, #parent, #parent_paragraph, #prepend_to

Constructor Details

#initialize(node) ⇒ Text

Returns a new instance of Text.



12
13
14
# File 'lib/docx/elements/text.rb', line 12

def initialize(node)
  @node = node
end

Class Method Details

.tagObject



7
8
9
# File 'lib/docx/elements/text.rb', line 7

def self.tag
  't'
end