Class: Rjq::AST::Identity

Inherits:
Node
  • Object
show all
Defined in:
lib/rjq/ast.rb

Instance Attribute Summary

Attributes inherited from Node

#source_span

Instance Method Summary collapse

Methods inherited from Node

#assign_value, #invalid_path_message, #take, #with_source_span

Instance Method Details

#eval(input, _context) ⇒ Object



188
189
190
# File 'lib/rjq/ast.rb', line 188

def eval(input, _context)
  [input]
end

#paths(_input, context) ⇒ Object



192
193
194
# File 'lib/rjq/ast.rb', line 192

def paths(_input, context)
  [context.current_path]
end