From: James Britt Date: 2004-12-09T10:01:53+09:00 Subject: Re: [patch] Obtaining mode information on an IO object Jos Backus wrote: > On Tue, Dec 07, 2004 at 09:25:13AM +0900, nobu.nokada@softhome.net wrote: > >>Hi, >> >>At Tue, 7 Dec 2004 04:22:22 +0900, >>Jos Backus wrote in [ruby-core:03907]: >> >>>The attached patch implements IO#mode. This method returns the mode the IO >>>object was opened with as a String. Example: >>> >>> f = File.new("testfile") >>> f.mode #=> "r" >> >>"mode" feels confusing as "stat.mode", how about "accmode" instead? > > > I rather like the symmetry between File.mode and File::Stat.mode, but accmode > is okay with me too. What is "accmode" suppose to be indicate? "Access mode?" If that's the case, can it just be called "access_mode" ? Or is there a requirement for consistency with some historical Unix terseness? Thanks, James