Sha256: 985df2f4663596f638322ca5246316f11d1c00942ec00a63e0f4440f77b0303c
Contents?: true
Size: 565 Bytes
Versions: 44
Compression:
Stored size: 565 Bytes
Contents
# 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) require_relative('../../java/java_base') else require_relative('../../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
Version data entries
44 entries across 44 versions & 1 rubygems