From: Jonathan Tran Date: 2012-09-13T12:05:35+09:00 Subject: Re: Pathname#to_str withdrawn in 1.9? It's definitely a judgment call. Not sure if this helps you, but I think most people use string interpolation, which calls #to_s implicitly. So I think this would work just fine in 1.9: require "pathname" f = Pathname("howdy") p "well #{f}" > The use cases are like this: > > require "pathname" > f = Pathname("howdy") > p ("well " + f) > > Under 1.8.7 that's "well howdy". Under 1.9.3 it's an error, "can't > convert Pathname into String." One wants to say: "Sure you can, just > call to_s like you used to!" > > It's the breakage I don't understand. Why do our Benevolent Masters > think this is just okay? I'll never find all the code where I'm doing > this sort of thing... m. -- Posted via http://www.ruby-forum.com/.