This allows File.write('file.txt', 'Content of the file') instead of
File.open('file.txt'){|f| f.write 'Content of the file'}
What do you think?
Sounds good. Do you have a patch?
jeremy
If you look at the ticket (
http://redmine.ruby-lang.org/issues/show/1081 ) the feature was backed
out today, there were some implementation errors that might not be
resolved in time for this method to make it into 1.9.2.
Might be worthwhile to hold off on adding as a core ext in Rails until
there's a stable implementation to copy a method signature from.
Well, apparently Matz has already agreed on the API, and this is just an issue with the implementation. But I don't see any problem in waiting a bit more until this issue is closed in Redmine...
Jeremy, I didn't prepare any patch yet, but since it is a trivial one, as soon as we agree in adding it to Rails core, I'll prepare it.