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 1934 1934: def const_missing(const_name) 1935: case const_name 1936: when :Task 1937: Rake.application.const_warning(const_name) 1938: Rake::Task 1939: when :FileTask 1940: Rake.application.const_warning(const_name) 1941: Rake::FileTask 1942: when :FileCreationTask 1943: Rake.application.const_warning(const_name) 1944: Rake::FileCreationTask 1945: when :RakeApp 1946: Rake.application.const_warning(const_name) 1947: Rake::Application 1948: else 1949: rake_original_const_missing(const_name) 1950: end 1951: end