Class: TreeSitter::QueryPredicate
- Inherits:
-
Object
- Object
- TreeSitter::QueryPredicate
- Defined in:
- lib/tree_sitter/query_predicate.rb
Overview
A Query predicate generic representation.
Instance Attribute Summary collapse
-
#args ⇒ Object
Returns the value of attribute args.
-
#operator ⇒ Object
Returns the value of attribute operator.
Instance Method Summary collapse
-
#initialize(operator, args) ⇒ QueryPredicate
constructor
A new instance of QueryPredicate.
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
#args ⇒ Object
Returns the value of attribute args.
7 8 9 |
# File 'lib/tree_sitter/query_predicate.rb', line 7 def args @args end |
#operator ⇒ Object
Returns the value of attribute operator.
6 7 8 |
# File 'lib/tree_sitter/query_predicate.rb', line 6 def operator @operator end |