Merge pull request #121 from yorik1984/main
Add self(singleton_method) for ruby
This commit is contained in:
@@ -6,7 +6,7 @@ local extractors = require("neogen.utilities.extractors")
|
|||||||
local template = {}
|
local template = {}
|
||||||
|
|
||||||
template.parent = {
|
template.parent = {
|
||||||
func = { "method" },
|
func = { "method", "singleton_method" },
|
||||||
class = { "class", "module" },
|
class = { "class", "module" },
|
||||||
type = { "call" },
|
type = { "call" },
|
||||||
}
|
}
|
||||||
@@ -20,7 +20,7 @@ local identifier = {
|
|||||||
|
|
||||||
template.data = {
|
template.data = {
|
||||||
func = {
|
func = {
|
||||||
["method"] = {
|
["method|singleton_method"] = {
|
||||||
["0"] = {
|
["0"] = {
|
||||||
extract = function(node)
|
extract = function(node)
|
||||||
local tree = {
|
local tree = {
|
||||||
|
|||||||
@@ -241,6 +241,8 @@ end
|
|||||||
---
|
---
|
||||||
--- Note: We will only document `major` and `minor` versions, not `patch` ones. (only X and Y in X.Y.z)
|
--- Note: We will only document `major` and `minor` versions, not `patch` ones. (only X and Y in X.Y.z)
|
||||||
---
|
---
|
||||||
|
--- ## 2.12.0~
|
||||||
|
--- - Fetch singleton methods in ruby (#121)
|
||||||
--- ## 2.11.0~
|
--- ## 2.11.0~
|
||||||
--- - Calling `:Neogen` will try to find the best type used to generate annotations (#116)
|
--- - Calling `:Neogen` will try to find the best type used to generate annotations (#116)
|
||||||
--- It'll recursively go up the syntax tree from the cursor position.
|
--- It'll recursively go up the syntax tree from the cursor position.
|
||||||
@@ -290,7 +292,7 @@ end
|
|||||||
--- with multiple annotation conventions.
|
--- with multiple annotation conventions.
|
||||||
---@tag neogen-changelog
|
---@tag neogen-changelog
|
||||||
---@toc_entry Changes in neogen plugin
|
---@toc_entry Changes in neogen plugin
|
||||||
neogen.version = "2.11.0"
|
neogen.version = "2.12.0"
|
||||||
--minidoc_afterlines_end
|
--minidoc_afterlines_end
|
||||||
|
|
||||||
return neogen
|
return neogen
|
||||||
|
|||||||
Reference in New Issue
Block a user