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.2.0-java lib/msgpack/symbol.rb
msgpack-1.2.0-x86-mingw32 lib/msgpack/symbol.rb
msgpack-1.2.0-x64-mingw32 lib/msgpack/symbol.rb
msgpack-1.2.0 lib/msgpack/symbol.rb
fluent-plugin-detect-memb-exceptions-0.0.2 vendor/bundle/ruby/2.0.0/gems/msgpack-1.1.0/lib/msgpack/symbol.rb
fluent-plugin-detect-memb-exceptions-0.0.1 vendor/bundle/ruby/2.0.0/gems/msgpack-1.1.0/lib/msgpack/symbol.rb
msgpack-1.1.0-java lib/msgpack/symbol.rb
msgpack-1.1.0-x64-mingw32 lib/msgpack/symbol.rb
msgpack-1.1.0-x86-mingw32 lib/msgpack/symbol.rb
msgpack-1.1.0 lib/msgpack/symbol.rb
msgpack-1.0.3-x86-mingw32 lib/msgpack/symbol.rb
msgpack-1.0.3-x64-mingw32 lib/msgpack/symbol.rb
msgpack-1.0.3-java lib/msgpack/symbol.rb
msgpack-1.0.3 lib/msgpack/symbol.rb
msgpack-1.0.2-x64-mingw32 lib/msgpack/symbol.rb
msgpack-1.0.2-x86-mingw32 lib/msgpack/symbol.rb
msgpack-1.0.2-java lib/msgpack/symbol.rb
msgpack-1.0.2 lib/msgpack/symbol.rb
msgpack-1.0.1-java lib/msgpack/symbol.rb
msgpack-1.0.1-x64-mingw32 lib/msgpack/symbol.rb