Method: YARD::Parser::Ruby::AstNode#parent

Defined in:
lib/yard/parser/ruby/ast_node.rb

#parentAstNode?

Returns the node’s parent or nil if it is a root node.

Returns:

  • (AstNode, nil)

    the node’s parent or nil if it is a root node.


58
59
60
# File 'lib/yard/parser/ruby/ast_node.rb', line 58

def parent
  @parent
end