Module: ZookeeperCommon
- Extended by:
- Zookeeper::Compatibility
- Includes:
- Zookeeper::Common
- Defined in:
- lib/zookeeper/compatibility.rb
Class Method Summary collapse
Methods included from Zookeeper::Compatibility
Methods included from Zookeeper::Common
Class Method Details
.const_missing(sym) ⇒ Object
91 92 93 94 95 96 97 98 99 100 101 102 103 |
# File 'lib/zookeeper/compatibility.rb', line 91 def self.const_missing(sym) candidate = Zookeeper::Common if candidate.const_defined?(sym) warn "\n#{self.name}::#{sym} is now located in #{candidate}::#{sym}, please update your code!\n#{clean_backtrace}" candidate.const_get(sym).tap do |c| # self.const_set(sym, c) end else super end end |