From: Ryan Davis Date: 2010-04-24T08:18:26+09:00 Subject: [ruby-core:29775] Re: anonymous Module#name returns nil in 1.9 On Apr 23, 2010, at 15:09 , Xavier Noria wrote: > In my view nil makes more sense than an empty string. An anonymous > module has no name by definition, and you know nil is conventionally > used to represent lack of value. Not "by definition"... which is why I'm asking. The following example used to work fine: > a = [] > ObjectSpace.each_object(Module) do |m| > a << m > end > > p a.sort_by { |m| m.name } I think it still should.