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