Method: YARD::Parser::Ruby::AstNode#file

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

#fileString

Returns the filename the node was parsed from.

Returns:

  • (String)

    the filename the node was parsed from


75
76
77
78
# File 'lib/yard/parser/ruby/ast_node.rb', line 75

def file
  return parent.file if parent
  @file
end