--- !ruby/object:RI::ClassDescription 
attributes: []

class_methods: []

comment: 
- !ruby/struct:SM::Flow::P 
  body: "This provides a hook system which programs that use Templater can use to discover generators installed through gems. This requires two separate things, the Templater-using progrma will have to call the #discover! method giving a scope, like this:"
- !ruby/struct:SM::Flow::VERB 
  body: "    Templater::Discovery.discover!(&quot;name-of-scope&quot;)\n"
- !ruby/struct:SM::Flow::P 
  body: Where &quot;name-of-scope&quot; should be a string that uniquely identifies your program. Any gem wishing to then add a generator, that is automatically picked up, will then need to add a Generators file at the root of the project (don't forget to add it to the gem's manifest of files).
- !ruby/struct:SM::Flow::VERB 
  body: "    - lib /\n    - spec /\n    - Rakefile\n    - Generators\n"
- !ruby/struct:SM::Flow::P 
  body: "This file should look something like this:"
- !ruby/struct:SM::Flow::VERB 
  body: "    scope &quot;name-of-scope&quot; do\n      require ...something...\n    end\n"
- !ruby/struct:SM::Flow::P 
  body: Multiple scopes can be added to the same Generators file for use with different generator programs.
constants: []

full_name: Templater::Discovery
includes: []

instance_methods: 
- !ruby/object:RI::MethodSummary 
  name: discover!
- !ruby/object:RI::MethodSummary 
  name: find_latest_gem_paths
- !ruby/object:RI::MethodSummary 
  name: generator_files
- !ruby/object:RI::MethodSummary 
  name: scope
name: Discovery
superclass: 
