Class: Fictive::Text::TextNode
- Inherits:
-
Object
- Object
- Fictive::Text::TextNode
- Defined in:
- lib/fictive/text/compiler.rb
Instance Method Summary collapse
- #evaluate ⇒ Object
-
#initialize(text) ⇒ TextNode
constructor
A new instance of TextNode.
Constructor Details
#initialize(text) ⇒ TextNode
Returns a new instance of TextNode.
95 96 97 |
# File 'lib/fictive/text/compiler.rb', line 95 def initialize(text) @text = text end |
Instance Method Details
#evaluate ⇒ Object
99 100 101 |
# File 'lib/fictive/text/compiler.rb', line 99 def evaluate @text end |