From: Curt Hibbs Date: 2006-03-15T21:10:57+09:00 Subject: Re: Patching file class On 3/15/06, Daniel V�lkerts wrote: > Hello, > > I checked out the ruby cvs tree for me Windows Mobile issue. After I run > 'nmake' I got a error for File.path(p) NoMethodError as this method is > called by a argument (the path I guess). > > My ruby 1.8.4 installation only knows File.path without a parameter. I > know that I can 'patch' ruby classes and I wrote following: > > class File > def path(p) > File.new(p).path > end > end > > But where to put this fragement in? I don't find any file.rb or io.rb. You can put this anywhere in your own application. Ruby's classes can alwasy be reopened and modified -- even system classes. Curt