Sha256: 8034fac038f2af0263a241b399586519bcc26669d9a91924df8a3b6f4206f928

Contents?: true

Size: 450 Bytes

Versions: 4

Compression:

Stored size: 450 Bytes

Contents

module Protobuf
  module Rpc
    class Connector
      
      def self.connector_for_client
        if defined?(Protobuf::ConnectorType)
          case Protobuf::ConnectorType 
          when "Socket" then 
            ::Protobuf::Rpc::Connectors::Socket
          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.1.1 lib/protobuf/rpc/connector.rb
protobuf-1.1.0.beta2 lib/protobuf/rpc/connector.rb
protobuf-1.1.0.beta1 lib/protobuf/rpc/connector.rb
protobuf-1.1.0.beta0 lib/protobuf/rpc/connector.rb