Method: JSON::Ext::Generator::State#script_safe=

Defined in:
ext/json/ext/generator/generator.c

#script_safe=(enable) ⇒ Object Also known as: escape_slash=

This sets whether or not the forward slashes will be escaped in the json output.



1833
1834
1835
1836
1837
1838
1839
# File 'ext/json/ext/generator/generator.c', line 1833

static VALUE cState_script_safe_set(VALUE self, VALUE enable)
{
    rb_check_frozen(self);
    GET_STATE(self);
    state->script_safe = RTEST(enable);
    return Qnil;
}