lib/yard/cli/doctest.rb
#
# Runs the command line, parsing arguments
# and generating tests.
#
# @param [Array<String>] args Switches are passed to minitest,
#   everything else is treated as the list of directories/files or glob
#
Runs the command line, parsing arguments
and generating tests.
Runs the command line parsing arguments and generating tests .
def run(*args)
        files = args.select { |arg| arg !~ /^-/ }
        files = parse_files(files)
        examples = parse_examples(files)
        add_pwd_to_path
        generate_tests(examples)
      end
def run ( * args ) files = args . select { | arg | arg !~ / ^- / } files = parse_files ( files ) examples = parse_examples ( files ) add_pwd_to_path generate_tests ( examples ) end
Runs the command line, parsing arguments
and generating tests.
Runs the command line parsing arguments and generating tests .
args
<not_specific>
<not_specific>
args Switches are passed to minitest, everything else is treated as the list of directories/files or glob
args Switches are passed to minitest everything else is treated as the list of directories / files or glob