Method: YARD::Parser::Ruby::AstNode#full_source

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

#full_sourceString

Returns the full source that the node was parsed from.

Returns:

  • (String)

    the full source that the node was parsed from

[View source]

82
83
84
85
86
# File 'lib/yard/parser/ruby/ast_node.rb', line 82

def full_source
  return parent.full_source if parent
  return @full_source if @full_source
  return IO.read(@file) if file && File.exist?(file)
end