On Sat, Mar 6, 2010 at 4:50 AM, Rodrigo Rosenfeld Rosas <[email protected]> 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 [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en.
