Module JSON::Ext::Generator::GeneratorMethods::TrueClass
In: ext/json/ext/generator/generator.c

Methods

to_json  

Public Instance methods

Returns a JSON string for true: ‘true’.

[Source]

/*
 * call-seq: to_json(state = nil, depth = 0)
 *
 * Returns a JSON string for true: 'true'.
 */
static VALUE mTrueClass_to_json(int argc, VALUE *argv, VALUE self)
{
    return rb_str_new2("true");
}

[Validate]