From: Ken Bloom Date: 2009-04-06T22:54:18+09:00 Subject: Re: what's wrong with these? On Sun, 05 Apr 2009 21:19:04 -0500, Nobuyoshi Nakada wrote: > Hi, > > At Mon, 6 Apr 2009 11:03:09 +0900, > Michael Malone wrote in [ruby-talk:333071]: >> > 2: >> > puts Dir.tmpdir >> > Dir.mktmpdir { |i| puts i } >> > -- it says 'undefined >> As for "undefined method" you're quite right, I can't find Dir#tmpdir >> defined anywhere either, and yet it's in the docs...what's the deal >> guys? > > require 'tmpdir' Yeah. The core rdoc on http://www.ruby-doc.org/ has a pitfall that it includes the standard libraries as well. (Nobody separated out the standard libraries from that.) If you want to know what's in the core, getting a copy of PickAxe is a better bet. --Ken -- Chanoch (Ken) Bloom. PhD candidate. Linguistic Cognition Laboratory. Department of Computer Science. Illinois Institute of Technology. http://www.iit.edu/~kbloom1/