--- !ruby/object:RI::MethodDescription 
aliases: []

block_params: 
comment: 
- !ruby/struct:SM::Flow::P 
  body: Automatically find all potential autotest runner styles by searching your loadpath, vendor/plugins, and rubygems for &quot;autotest/discover.rb&quot;. If found, that file is loaded and it should register discovery procs with autotest using <tt>add_discovery</tt>. That proc should return one or more strings describing the user's current environment. Those styles are then combined to dynamically invoke an autotest plugin to suite your environment. That plugin should define a subclass of Autotest with a corresponding name.
- !ruby/struct:SM::Flow::H 
  level: 3
  text: "Process:"
- !ruby/object:SM::Flow::LIST 
  contents: 
  - !ruby/struct:SM::Flow::LI 
    label: "1."
    body: All autotest/discover.rb files loaded.
  - !ruby/struct:SM::Flow::LI 
    label: "2."
    body: Those procs determine your styles (eg [&quot;rails&quot;, &quot;rspec&quot;]).
  - !ruby/struct:SM::Flow::LI 
    label: "3."
    body: Require file by sorting styles and joining (eg 'autotest/rails_rspec').
  - !ruby/struct:SM::Flow::LI 
    label: "4."
    body: Invoke run method on appropriate class (eg Autotest::RailsRspec.run).
  type: :NUMBER
- !ruby/struct:SM::Flow::H 
  level: 3
  text: "Example autotest/discover.rb:"
- !ruby/struct:SM::Flow::VERB 
  body: "  Autotest.add_discovery do\n    &quot;rails&quot; if File.exist? 'config/environment.rb'\n  end\n"
full_name: Autotest::autodiscover
is_singleton: true
name: autodiscover
params: ()
visibility: public
