# figure out what platform we're on # this way there's no ambiguity about which file to include # or which class we're subclassing. if defined?(::JRUBY_VERSION) Zookeeper.require_root('java/java_base') else Zookeeper.require_root('ext/zookeeper_base') end module Zookeeper if defined?(::JRUBY_VERSION) class Client < Zookeeper::JavaBase end else class Client < Zookeeper::ZookeeperBase end end def self.new(*a, &b) Zookeeper::Client.new(*a, &b) end end Zookeeper::Client.class_eval do include Zookeeper::ClientMethods end