Sha256: 3a9d5f68c099650e88ec64f954a2764a7c9ee683ea33488c8087e05bdebe6269

Contents?: true

Size: 141 Bytes

Versions: 86

Compression:

Stored size: 141 Bytes

Contents

class Symbol
  def to_msgpack_ext
    [to_s].pack('A*')
  end

  def self.from_msgpack_ext(data)
    data.unpack('A*').first.to_sym
  end
end

Version data entries

86 entries across 86 versions & 3 rubygems

Version Path
msgpack-1.4.2-java lib/msgpack/symbol.rb
msgpack-1.4.2 lib/msgpack/symbol.rb
msgpack-1.4.1-java lib/msgpack/symbol.rb
msgpack-1.4.0-java lib/msgpack/symbol.rb
msgpack-1.4.0.pre1 lib/msgpack/symbol.rb
msgpack-1.3.3-x64-mingw32 lib/msgpack/symbol.rb
msgpack-1.3.3-x86-mingw32 lib/msgpack/symbol.rb
msgpack-1.3.3-java lib/msgpack/symbol.rb
msgpack-1.3.3 lib/msgpack/symbol.rb
msgpack-1.3.2-x64-mingw32 lib/msgpack/symbol.rb
msgpack-1.3.2-x86-mingw32 lib/msgpack/symbol.rb
msgpack-1.3.2-java lib/msgpack/symbol.rb
msgpack-1.3.2 lib/msgpack/symbol.rb
chatops-rpc-0.0.2 fixtures/chatops-controller-example/vendor/bundle/ruby/2.5.0/gems/msgpack-1.3.1/lib/msgpack/symbol.rb
chatops-rpc-0.0.1 fixtures/chatops-controller-example/vendor/bundle/ruby/2.5.0/gems/msgpack-1.3.1/lib/msgpack/symbol.rb
msgpack-1.3.1-java lib/msgpack/symbol.rb
msgpack-1.3.1-x64-mingw32 lib/msgpack/symbol.rb
msgpack-1.3.1-x86-mingw32 lib/msgpack/symbol.rb
msgpack-1.3.1 lib/msgpack/symbol.rb
msgpack-1.3.0-x64-mingw32 lib/msgpack/symbol.rb