Class: Query::Node::Text

Inherits:
Query::Node show all
Defined in:
lib/query/node/text.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#textObject

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