19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
# File 'lib/compass/core.rb', line 19
def self.extended(base)
new_base = base.name.sub(/^Compass/,"Compass::Core")
base.class_eval " def self.const_missing(const_name)\n puts \"cannot find \\\#{const_name}\"\n if \#{new_base}.const_defined?(const_name)\n unless Compass::Core.module_deprecation_warning_issued\n Compass::Core.module_deprecation_warning_issued = true\n Compass::Util.compass_warn(\n \"DEPRECATED: \#{base.name}::\\\#{const_name} has been moved to \" +\n \"\#{new_base}::\\\#{const_name}.\\\\n\" +\n \"Please update \\\#{caller[0]}\")\n end\n \#{new_base}.const_get(const_name)\n end\n end\n RUBY\nend\n"
|