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

Version Path
zookeeper-1.0.0 lib/zookeeper/client.rb
zookeeper-1.0.0-java lib/zookeeper/client.rb
zookeeper-1.0.0.beta.1 lib/zookeeper/client.rb
zookeeper-1.0.0.beta.1-java lib/zookeeper/client.rb