class Rails::Generators::Base

def self.source_root(path=nil)

Returns the source root for this generator using default_source_root as default.
def self.source_root(path=nil)
  @_source_root = path if path
  @_source_root ||= default_source_root
end