Method: YARD::Parser::SourceParser.after_parse_list

Defined in:
lib/yard/parser/source_parser.rb

.after_parse_list {|files, globals| ... } ⇒ Proc

Registers a callback to be called after a list of files is parsed via parse. The block passed to this method will be called on subsequent parse calls.

Examples:

Printing results after parsing occurs

SourceParser.after_parse_list do
  puts "Finished parsing!"
end
YARD.parse
# Prints "Finished parsing!" after parsing files

Yields:

  • (files, globals)

    the yielded block is called once before parsing all files

Yield Parameters:

Yield Returns:

  • (void)

    the return value for the block is ignored.

Returns:

  • (Proc)

    the yielded block

See Also:

Since:

  • 0.7.0



237
238
239
# File 'lib/yard/parser/source_parser.rb', line 237

def after_parse_list(&block)
  after_parse_list_callbacks << block
end