Method: Oj::Rails.optimized?

Defined in:
ext/oj/rails.c

.optimized?(clas) ⇒ Boolean

Returns true if the specified Class is being optimized.



869
870
871
872
873
874
875
876
# File 'ext/oj/rails.c', line 869

static VALUE rails_optimized(VALUE self, VALUE clas) {
    ROpt ro = oj_rails_get_opt(&ropts, clas);

    if (NULL == ro) {
        return Qfalse;
    }
    return (ro->on) ? Qtrue : Qfalse;
}