Module: ClassStat

Defined in:
lib/class_stat.rb,
lib/class_stat/version.rb,
ext/class_stat/class_stat.c

Constant Summary collapse

VERSION =
"0.0.3"

Class Method Summary collapse

Class Method Details

.statObject



81
82
83
84
85
86
87
88
89
90
91
# File 'ext/class_stat/class_stat.c', line 81

static VALUE
class_stat(VALUE self)
{
    struct class_stat_struct data;
    data.klass_iclassnum = rb_hash_new();
    data.klass_msize =rb_hash_new();

    rb_objspace_each_objects(stat_i, &data);

    return rb_ary_new_from_args(2, data.klass_iclassnum, data.klass_msize);
}