From: Marc Heiler Date: 2009-05-01T21:16:21+09:00 Subject: Re: a few thoughts for ruby... some_var = '/tmp' print 'Is a directory.' if Dir.directory? some_var vs print 'Is a directory.' if File.directory? some_var The difference is small, and it is not really important but from a logical point of view, since we don't treat both as Inodes anyway in ruby, using Dir.directory? seems syntactically more logical than using File.directory?. But it is not anything which really bothers me. -- Posted via http://www.ruby-forum.com/.