Class: Wikitree::Text
Overview
Text run/segement
Instance Method Summary collapse
-
#initialize(text) ⇒ Text
constructor
A new instance of Text.
- #inspect ⇒ Object
- #to_text ⇒ Object
- #to_wiki ⇒ Object
Constructor Details
#initialize(text) ⇒ Text
Returns a new instance of Text.
11 12 13 |
# File 'lib/wikitree/nodes.rb', line 11 def initialize( text ) @text = text end |
Instance Method Details
#inspect ⇒ Object
21 22 23 |
# File 'lib/wikitree/nodes.rb', line 21 def inspect @text.inspect end |
#to_text ⇒ Object
15 16 17 18 |
# File 'lib/wikitree/nodes.rb', line 15 def to_text ## todo: fix remove possible html stuff - why? why not? @text end |
#to_wiki ⇒ Object
19 |
# File 'lib/wikitree/nodes.rb', line 19 def to_wiki() @text; end |