class Rails::Generators::Base
def self.namespace(name=nil)
same as Thor default except that the Generator at the end of the class
Convenience method to get the namespace from the class name. It's the
def self.namespace(name=nil) return super if name @namespace ||= super.sub(/_generator$/, '').sub(/:generators:/, ':') end