Sha256: 858591003aa9deebc06026e4cb0e6fd47f105d52265f2a5b5df28a5e9e6f5160

Contents?: true

Size: 388 Bytes

Versions: 48

Compression:

Stored size: 388 Bytes

Contents

// Copyright (c) 2011 Peter Ohler. All rights reserved.
// Licensed under the MIT License. See LICENSE file in the project root for license details.

#ifndef OJ_ENCODE_H
#define OJ_ENCODE_H

#include "oj.h"
#include "ruby.h"
#include "ruby/encoding.h"

static inline VALUE oj_encode(VALUE rstr) {
    rb_enc_associate(rstr, oj_utf8_encoding);
    return rstr;
}

#endif /* OJ_ENCODE_H */

Version data entries

48 entries across 48 versions & 2 rubygems

Version Path
oj-3.16.7 ext/oj/encode.h
oj-3.16.6 ext/oj/encode.h
oj-3.16.5 ext/oj/encode.h
oj-3.16.4 ext/oj/encode.h
oj-3.16.3 ext/oj/encode.h
oj-3.16.2 ext/oj/encode.h
oj-3.16.1 ext/oj/encode.h
oj-3.16.0 ext/oj/encode.h
oj-3.15.1 ext/oj/encode.h
oj-3.15.0 ext/oj/encode.h
oj-3.14.3 ext/oj/encode.h
devcycle-ruby-server-sdk-2.0.0 vendor/bundle/ruby/3.0.0/gems/oj-3.13.2/ext/oj/encode.h
oj-3.14.2 ext/oj/encode.h
oj-3.14.1 ext/oj/encode.h
oj-3.14.0 ext/oj/encode.h
oj-3.13.23 ext/oj/encode.h
oj-3.13.22 ext/oj/encode.h
oj-3.13.21 ext/oj/encode.h
oj-3.13.20 ext/oj/encode.h
oj-3.13.19 ext/oj/encode.h