- Inheritance
- < Rails::Generator::AbstractGemSource < Rails::Generator::Source < Object
GemPathSource looks for generators within any RubyGem‘s /rails_generators/<generator_name>_generator.rb file.
Methods
Instance
Visibility | Signature |
---|---|
public | each () {|Spec.new(File.basename(generator).sub(/_generator.rb$/, ''), File.dirname(generator), label)| ...} |
Instance Method Detail
each() {|Spec.new(File.basename(generator).sub(/_generator.rb$/, ''), File.dirname(generator), label)| ...}
Yield each generator within rails_generator subdirectories.