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.
82 83 84 |
# File 'lib/fictive/text/compiler.rb', line 82 def initialize(text) @text = text end |
Instance Method Details
#evaluate ⇒ Object
86 87 88 |
# File 'lib/fictive/text/compiler.rb', line 86 def evaluate @text end |