From: Roger Pack Date: 2009-10-21T08:46:21+09:00 Subject: [ruby-core:26191] [Feature #2065] An ancestors iterator Issue #2065 has been updated by Roger Pack. You could write your own method: class Object def ancestors_cached @ancestors ||= ancestors end end Would that be sufficient? (It's harder to implement that in core since it would need to be invalidated whenever a class hierarchy changes). -r ---------------------------------------- http://redmine.ruby-lang.org/issues/show/2065 ---------------------------------------- http://redmine.ruby-lang.org