From: Jean-Hugues ROBERT Date: 2002-06-20T21:45:25+09:00 Subject: What rational for failure of ("" << nil) and of ("" << :Foo) ? Hello, What is the rational for failure of "" << nil and of "" << :Foo ? Apparently <<() (and +()) uses to_str() only, never to_s(). However this works: "#{nil}#{:Foo}" I may do this to define to_str(): class NilClass def to_str() to_s() end end class Symbol def to_str() to_s() end end and then ("" << nil << :Foo) works. ... But I wonder if that could break things in some other cases? Thanks, Jean-Hugues ------------------------------------------------------------------------- Web: http://hdl.handle.net/1030.37/1.1 Phone: +33 (0) 4 92 27 74 17