Method: JSON::Ext::Generator::State#depth

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

#depthObject

This integer returns the current depth of data structure nesting.



1902
1903
1904
1905
1906
# File 'ext/json/ext/generator/generator.c', line 1902

static VALUE cState_depth(VALUE self)
{
    GET_STATE(self);
    return LONG2FIX(state->depth);
}