Sha256: dc5fe9537a09011031093b447c05aaa45fa2bf4419eb782dc4cc0b7713bafe4a

Contents?: true

Size: 515 Bytes

Versions: 4

Compression:

Stored size: 515 Bytes

Contents

module Protobuf
  module Rpc
    class Connector
      
      def self.connector_for_client
        if defined?(Protobuf::ClientType)
          case Protobuf::ClientType 
          when "Socket" then 
            ::Protobuf::Rpc::Connectors::Socket
          when "Zmq" then
            ::Protobuf::Rpc::Connectors::Zmq
          else
            ::Protobuf::Rpc::Connectors::EventMachine
          end
        else
          ::Protobuf::Rpc::Connectors::EventMachine
        end
      end
      
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
protobuf-1.4.2 lib/protobuf/rpc/connector.rb
protobuf-1.4.1 lib/protobuf/rpc/connector.rb
protobuf-1.4.0 lib/protobuf/rpc/connector.rb
protobuf-1.3.0 lib/protobuf/rpc/connector.rb