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. Btw, the patch needlessly initializes str to Qnil. It should just be VALUE str; Thanks Nobu. -- Jos Backus _/ _/_/_/ Sunnyvale, CA _/ _/ _/ _/ _/_/_/ _/ _/ _/ _/ jos at catnook.com _/_/ _/_/_/ require 'std/disclaimer'