summaryrefslogtreecommitdiff
path: root/queries/ruby/99-function.scm
blob: 3f25fedb718deb606f1759149290a213ed5b1dea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
(method) @context.function
(singleton_method) @context.function
(lambda) @context.function

(method
  body: (body_statement) @context.body)

(singleton_method
  body: (body_statement) @context.body)

(lambda
  body: (block) @context.body)