Class: TreeSitter::QueryMatch
- Inherits:
-
Object
- Object
- TreeSitter::QueryMatch
- Defined in:
- ext/tree_sitter/query_match.c
Instance Method Summary collapse
-
#inspect ⇒ Object
Class methods.
- #to_s ⇒ Object
Instance Method Details
#inspect ⇒ Object
Class methods
25 26 27 28 29 30 |
# File 'ext/tree_sitter/query_match.c', line 25 static VALUE query_match_inspect(VALUE self) { TSQueryMatch query_match = SELF; return rb_sprintf("{id=%d, pattern_inex=%d, capture_count=%d}", query_match.id, query_match.pattern_index, query_match.capture_count); } |
#to_s ⇒ Object
25 26 27 28 29 30 |
# File 'ext/tree_sitter/query_match.c', line 25 static VALUE query_match_inspect(VALUE self) { TSQueryMatch query_match = SELF; return rb_sprintf("{id=%d, pattern_inex=%d, capture_count=%d}", query_match.id, query_match.pattern_index, query_match.capture_count); } |