Module: ZookeeperCommon

Extended by:
Zookeeper::Compatibility
Includes:
Zookeeper::Common
Defined in:
lib/zookeeper/compatibility.rb

Constant Summary

Constants included from Zookeeper::Common

Zookeeper::Common::ZKRB_GLOBAL_CB_REQ

Class Method Summary collapse

Methods included from Zookeeper::Compatibility

clean_backtrace

Methods included from Zookeeper::Common

#event_dispatch_thread?

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