From: Vladimir Sizikov Date: 2008-07-23T06:22:09+09:00 Subject: [ruby-core:17918] String methods on subclasses return "uninitialized" objects Hi, During the work on RubySpec tests, we had an interesting discussion on String methods behavior which we'd like to double-check with ruby-core. Say, we have a subclass of String, and then invoke #split on that subclass instance. That method will return instances of that subclass as well, as expected, but it seems that the #initialize method in not really invoked at all. Is that intentional or accidental? It seems to me that if there is a custom initialize method written for that subclass, it is there for a reason (maybe, all objects require some customization), but in case of many String methods, the created instances are not properly initialized. Opinions? Thanks, --Vladimir