On Sat, Mar 6, 2010 at 4:50 AM, Rodrigo Rosenfeld Rosas <rr.ro...@gmail.com> wrote: > Regarding this feature recently added to Ruby 1.9, how about including it on > Rails core extension when not defined? > > http://redmine.ruby-lang.org/issues/show/1081 > http://redmine.ruby-lang.org/repositories/revision/ruby-19?rev=26816 > > 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 -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to rubyonrails-c...@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-core+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en.