Method: Charyf::Generators::Base.inherited
- Defined in:
- lib/charyf/utils/generator/base.rb
.inherited(base) ⇒ Object
Cache source root and add lib/generators/base/generator/templates to source paths.
28 29 30 31 32 33 34 35 36 37 38 |
# File 'lib/charyf/utils/generator/base.rb', line 28 def self.inherited(base) #:nodoc: super # Invoke source_root so the default_source_root is set. base.source_root if base.name && base.name !~ /Base$/ Charyf::Generators.subclasses << base end end |