Apr 08 2009

@rubx ObjectSpace.each_object….

Published by at 4:58 pm under Life

@rubx ObjectSpace.each_object.inject({}) {|acc,p| acc[p.class]=0 unless acc.has_key?(p.class);acc[p.class] += 1;acc;}

No responses yet

Trackback URI | Comments RSS

Leave a Reply

You must be logged in to post a comment.