class Module

def const_missing(const_name)

constants in Object and avoid this handler.
--classic-namespace command line option will define these
name, display a warning and return the proper object. Using the
Rake class names. If someone tries to reference the constant
Check for deprecated uses of top level (i.e. in Object) uses of
def const_missing(const_name)
  case const_name
  when :Task
    Rake.application.const_warning(const_name)
    Rake::Task
  when :FileTask
    Rake.application.const_warning(const_name)
    Rake::FileTask
  when :FileCreationTask
    Rake.application.const_warning(const_name)
    Rake::FileCreationTask
  when :RakeApp
    Rake.application.const_warning(const_name)
    Rake::Application
  else
    rake_original_const_missing(const_name)
  end
end