Class: Query::Node::Text
- Inherits:
-
Query::Node
- Object
- Query::Node
- Query::Node::Text
- Defined in:
- lib/query/node/text.rb
Instance Attribute Summary collapse
-
#text ⇒ Object
Returns the value of attribute text.
Instance Method Summary collapse
- #evaluate(**args) ⇒ Object
-
#initialize(parsed) ⇒ Text
constructor
A new instance of Text.
Constructor Details
#initialize(parsed) ⇒ Text
8 9 10 |
# File 'lib/query/node/text.rb', line 8 def initialize(parsed) self.text = parsed.presence end |
Instance Attribute Details
#text ⇒ Object
Returns the value of attribute text.
6 7 8 |
# File 'lib/query/node/text.rb', line 6 def text @text end |
Instance Method Details
#evaluate(**args) ⇒ Object
12 13 14 |
# File 'lib/query/node/text.rb', line 12 def evaluate(**args) text end |