From: Lars Haugseth Date: 2009-02-12T00:43:52+09:00 Subject: Re: File#size * "David A. Black" wrote: > > Hi -- > > On Sat, 7 Feb 2009, Robert Klemme wrote: > > > On 07.02.2009 15:26, Roger Pack wrote: > >> I am thinking this would be a nice function to have in the stdlib. > >> > >> File#size > >> > >> thoughts? > > > > Others seems to agree > > > > http://www.ruby-doc.org/core/classes/File.html#M002590 > > I think Roger means an instance method. There are many other File class methods for which it would be convenient to have instance method counterparts. This and much more can be found in the standard library Pathname: http://www.ruby-doc.org/stdlib/libdoc/pathname/rdoc/classes/Pathname.html -- Lars Haugseth "If anyone disagrees with anything I say, I am quite prepared not only to retract it, but also to deny under oath that I ever said it." -Tom Lehrer