instance method
JSON::Ext::Generator::State#indent=
indent=(indent)
ext/json/generator/generator.c
View on GitHub ↗
static VALUE cState_indent_set(VALUE self, VALUE indent)
{
rb_check_frozen(self);
GET_STATE(self);
RB_OBJ_WRITE(self, &state->indent, string_config(indent));
return Qnil;
}
Sets the string that is used to indent levels in the JSON text.