Module: ProtocolBuffers

Defined in:
lib/protocol_buffers.rb,
lib/protocol_buffers/compiler.rb,
lib/protocol_buffers/runtime/enum.rb,
lib/protocol_buffers/runtime/field.rb,
lib/protocol_buffers/runtime/varint.rb,
lib/protocol_buffers/runtime/decoder.rb,
lib/protocol_buffers/runtime/encoder.rb,
lib/protocol_buffers/runtime/message.rb

Defined Under Namespace

Modules: Compiler, Decoder, Encoder, Enum, Varint, WireTypes Classes: CompileError, DecodeError, EncodeError, Field, Message, RepeatedField

Constant Summary collapse

VERSION =
File.read(File.join(File.dirname(__FILE__), "..", "VERSION")).chomp

Class Method Summary collapse

Class Method Details

.bin_sio(*args) ⇒ Object

for 1.9.2 compatibility



6
7
8
9
10
# File 'lib/protocol_buffers.rb', line 6

def self.bin_sio(*args)
  sio = StringIO.new(*args)
  sio.set_encoding('binary') if sio.respond_to?(:set_encoding)
  sio
end