Class: TreeSitter::QueryPredicate

Inherits:
Object
  • Object
show all
Defined in:
lib/tree_sitter/query_predicate.rb

Overview

A Query predicate generic representation.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(operator, args) ⇒ QueryPredicate

Returns a new instance of QueryPredicate.



9
10
11
12
# File 'lib/tree_sitter/query_predicate.rb', line 9

def initialize(operator, args)
  @operator = operator
  @args = args
end

Instance Attribute Details

#argsObject

Returns the value of attribute args.



7
8
9
# File 'lib/tree_sitter/query_predicate.rb', line 7

def args
  @args
end

#operatorObject

Returns the value of attribute operator.



6
7
8
# File 'lib/tree_sitter/query_predicate.rb', line 6

def operator
  @operator
end