class YARD::Parser::Ruby::AstNode

def first_line

Returns:
  • (String) - the first line of source represented by the node.
def first_line
  full_source.split(/\r?\n/)[line - 1].strip
end