Sha256: 7fac1a1b8d518ceefea3b7b0bdbf66a747b48c3bd19d6d910f9e3bd2c2cabb4e

Contents?: true

Size: 296 Bytes

Versions: 8

Compression:

Stored size: 296 Bytes

Contents

// Copyright (c) 2011 Peter Ohler. All rights reserved.

#ifndef OJ_ENCODE_H
#define OJ_ENCODE_H

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

#include "oj.h"

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

#endif /* OJ_ENCODE_H */

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
oj-3.11.3 ext/oj/encode.h
oj-3.11.2 ext/oj/encode.h
oj-3.11.1 ext/oj/encode.h
oj-3.11.0 ext/oj/encode.h
oj-3.10.18 ext/oj/encode.h
oj-3.10.17 ext/oj/encode.h
oj-3.10.16 ext/oj/encode.h
oj-3.10.15 ext/oj/encode.h