From 83f9c12453f7cf5b51b1ef87b9e27d1e4af13948 Mon Sep 17 00:00:00 2001 From: yorik1984 Date: Fri, 6 Jan 2023 04:02:41 +0200 Subject: [PATCH] Update ruby.lua --- lua/neogen/configurations/ruby.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lua/neogen/configurations/ruby.lua b/lua/neogen/configurations/ruby.lua index a13b423..7cefdec 100644 --- a/lua/neogen/configurations/ruby.lua +++ b/lua/neogen/configurations/ruby.lua @@ -6,7 +6,7 @@ local extractors = require("neogen.utilities.extractors") local template = {} template.parent = { - func = { "method" }, + func = { "method", "singleton_method" }, class = { "class", "module" }, type = { "call" }, } @@ -20,7 +20,7 @@ local identifier = { template.data = { func = { - ["method"] = { + ["method|singleton_method"] = { ["0"] = { extract = function(node) local tree = {