Sha256: f0ba4971d358b0089f6aa178923e16d279f30b73e459be4c92ab46b1a739d45f

Contents?: true

Size: 414 Bytes

Versions: 2

Compression:

Stored size: 414 Bytes

Contents

if RUBY_PLATFORM == 'java'
  class Array
    def to_msgpack
      MessagePack.pack self
    end
  end

  class String
    def to_msgpack
      MessagePack.pack self
    end
  end

  class Fixnum
    def to_msgpack
      MessagePack.pack self
    end
  end

  class NilClass
    def to_msgpack
      MessagePack.pack self
    end
  end

  class Hash
    def to_msgpack
      MessagePack.pack self
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
simple-secrets-2.1.0 lib/msgpack_extensions.rb
simple-secrets-2.0.0 lib/msgpack_extensions.rb