Method: YARD::Parser::SourceParser.before_parse_file
- Defined in:
- lib/yard/parser/source_parser.rb
permalink .before_parse_file {|parser| ... } ⇒ Proc
Registers a callback to be called before an individual file is parsed. The block passed to this method will be called on subsequent parse calls.
To register a callback that is called before the entire list of files is processed, see before_parse_list.
292 293 294 |
# File 'lib/yard/parser/source_parser.rb', line 292 def before_parse_file(&block) before_parse_file_callbacks << block end |