Lookup missing generators using const_missing. This allows any generator to reference another without having to know its location: RubyGems, ~/.rubigen/generators, and APP_ROOT/generators.
# File lib/rubigen/lookup.rb, line 8
8: def lookup_missing_generator(class_id)
9: if md = /(.+)Generator$/.match(class_id.to_s)
10: name = md.captures.first.demodulize.underscore
11: RubiGen::Base.active.lookup(name).klass
12: else
13: const_missing_before_generators(class_id)
14: end
15: end
Disabled; run with --debug to generate this.
Generated with the Darkfish Rdoc Generator 1.1.6.