From: Nobuyoshi Nakada Date: 2007-06-13T14:18:07+09:00 Subject: Re: Extending Symbol with #to_str effects Struct.new Hi, At Wed, 13 Jun 2007 07:51:59 +0900, Chris Carter wrote in [ruby-talk:255405]: > This is because if Struct gets a String or a "string like object > (responds_to? :to_str)" it uses an alternate behavior where the first > argument, if a proper Constant name in a string, is defined to be the > Struct class generated under the Struct:: namespace. You may know, it can be disabled by passing nil as the first argument, so that anonymous Struct will be created. -- Nobu Nakada