diff options
author | Max Hilbrunner <mhilbrunner@users.noreply.github.com> | 2018-09-22 17:15:38 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-22 17:15:38 +0200 |
commit | d878c828b5094b4cef845889055d429b207bd070 (patch) | |
tree | 0b51bc730b118f0c1f6b1e6d9fd136402ed36915 /doc/classes | |
parent | a4c2890a7b7e27bf2c4a662aef582473029d4762 (diff) | |
parent | 0fdbf6b2ef833afa929881f7281ea801ef4d6b8b (diff) |
Merge pull request #22115 from akerudesu/find-parent
Added find_parent method to node class
Diffstat (limited to 'doc/classes')
-rw-r--r-- | doc/classes/Node.xml | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/doc/classes/Node.xml b/doc/classes/Node.xml index d00652d40c..90e9436307 100644 --- a/doc/classes/Node.xml +++ b/doc/classes/Node.xml @@ -266,6 +266,15 @@ Returns the parent node of the current node, or an empty [code]Node[/code] if the node lacks a parent. </description> </method> + <method name="find_parent" qualifiers="const"> + <return type="Node"> + </return> + <argument index="0" name="mask" type="String"> + </argument> + <description> + Finds the first parent of the current node whose name matches [code]mask[/code] as in [method String.match] (i.e. case sensitive, but '*' matches zero or more characters and '?' matches any single character except '.'). Note that it does not match against the full path, just against individual node names. + </description> + </method> <method name="get_path" qualifiers="const"> <return type="NodePath"> </return> |