From: matz@... (Yukihiro Matsumoto) Date: 2001-05-21T15:48:52+09:00 Subject: [ruby-talk:15461] Re: more reflection Hi, In message "[ruby-talk:15456] more reflection" on 01/05/21, Mathieu Bouchard writes: |shouldn't there be a version of Module#included_modules or #ancestors |which actually returns the uncrippled list of included modules at the |immediate level? Current versions of those two methods only lists them |recursively and don't count repeated inclusion. I want the stuff that's |really written in the Module, not some predigested version. There's no such thing like repeated inheritance (or inclusion) in Ruby. Currently second attempt of inclusion is just ignored. |also I'd like a method to find whether an object has a singleton class, |without creating one. This is not possible because Object itself doesn't |have an #extended_modules, though it has a #singleton_methods. class <