Module: SuperDiff::Errors

Defined in:
lib/super_diff/errors.rb

Class Method Summary collapse

Class Method Details

.const_missing(missing_const_name) ⇒ Object



5
6
7
8
9
10
11
12
13
14
15
16
# File 'lib/super_diff/errors.rb', line 5

def self.const_missing(missing_const_name)
  if Core.const_defined?(missing_const_name)
    warn "      WARNING: SuperDiff::Errors::\#{missing_const_name} is deprecated and will be removed in the next major release.\n      Please use SuperDiff::Core::\#{missing_const_name} instead.\n      \#{caller_locations.join(\"\\n\")}\n    WARNING\n    Core.const_get(missing_const_name)\n  else\n    super\n  end\nend\n"