class RDoc::Parser::C
def look_for_directives_in context, comment
def look_for_directives_in context, comment @preprocess.handle comment, context do |directive, param| case directive when 'main' then @options.main_page = param warn <<~MSG The :main: directive is deprecated and will be removed in RDoc 7. You can use these options to specify the initial page displayed instead: - `--main=#{param}` via the command line - `rdoc.main = "#{param}"` if you use `RDoc::Task` - `main_page: #{param}` in your `.rdoc_options` file MSG '' when 'title' then @options.default_title = param if @options.respond_to? :default_title= warn <<~MSG The :title: directive is deprecated and will be removed in RDoc 7. You can use these options to specify the title displayed instead: - `--title=#{param}` via the command line - `rdoc.title = "#{param}"` if you use `RDoc::Task` - `title: #{param}` in your `.rdoc_options` file MSG '' end end comment end