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 1952
1952: def const_missing(const_name)
1953: case const_name
1954: when :Task
1955: Rake.application.const_warning(const_name)
1956: Rake::Task
1957: when :FileTask
1958: Rake.application.const_warning(const_name)
1959: Rake::FileTask
1960: when :FileCreationTask
1961: Rake.application.const_warning(const_name)
1962: Rake::FileCreationTask
1963: when :RakeApp
1964: Rake.application.const_warning(const_name)
1965: Rake::Application
1966: else
1967: rake_original_const_missing(const_name)
1968: end
1969: end