Tbpgr Blog

Employee Experience Engineer tbpgr(てぃーびー) のブログ

2014-10-20から1日間の記事一覧

Ruby | ObjectSpace | count_objects

概要 ObjectSpace#count_objects(result_hash = {}) -> Hash 詳細 オブジェクトを種類ごとにカウントした結果を Hash として返却。 サンプルコード require 'tbpgr_utils' hash = {} bulk_puts_eval binding, <<-EOS ObjectSpace.count_objects class Hoge; …