Top Level Namespace

Defined Under Namespace

Modules: Google, Protobuf

Instance Method Summary collapse

Instance Method Details

#NumericObject

Adding extension to Numeric until we can get people to stop calling #value on Enum instances.



9
# File 'lib/protobuf/enum.rb', line 9

::Protobuf.deprecator.define_deprecated_methods(Numeric, :value => :to_int)

#protobufObject

Socket Mode

Require this file if you wish to run your server and/or client RPC with the raw socket handlers. This is the default run mode for bin/rpc_server.

To run with rpc_server either omit any mode switches, or explicitly pass socket:

rpc_server myapp.rb rpc_server --socket myapp.rb

To run for client-side only override the require in your Gemfile:

gem 'protobuf', :require => 'protobuf/socket'



16
# File 'lib/protobuf/zmq.rb', line 16

require 'protobuf'