Methods
Public Instance methods
Check for deprecated uses of top level (i.e. in Object) uses of Rake class names. If someone tries to reference the constant name, display a warning and return the proper object. Using the —classic-namespace command line option will define these constants in Object and avoid this handler.
[ show source ]
# File lib/rake.rb, line 1747
1747: def const_missing(const_name)
1748: case const_name
1749: when :Task
1750: Rake.application.const_warning(const_name)
1751: Rake::Task
1752: when :FileTask
1753: Rake.application.const_warning(const_name)
1754: Rake::FileTask
1755: when :FileCreationTask
1756: Rake.application.const_warning(const_name)
1757: Rake::FileCreationTask
1758: when :RakeApp
1759: Rake.application.const_warning(const_name)
1760: Rake::Application
1761: else
1762: rake_original_const_missing(const_name)
1763: end
1764: end