module Compass::HasDeprecatedConstantsFromCore
Public Class Methods
extended(base)
click to toggle source
# File lib/compass/core.rb, line 19 def self.extended(base) new_base = base.name.sub(/^Compass/,"Compass::Core") base.class_eval <<-RUBY def self.const_missing(const_name) puts "cannot find \#{const_name}" if #{new_base}.const_defined?(const_name) unless Compass::Core.module_deprecation_warning_issued Compass::Core.module_deprecation_warning_issued = true Compass::Util.compass_warn( "DEPRECATED: #{base.name}::\#{const_name} has been moved to " + "#{new_base}::\#{const_name}.\\n" + "Please update \#{caller[0]}") end #{new_base}.const_get(const_name) end end RUBY end