Non Existent Method Dir.empty? Description via "ri"

I am using version 0.3.2

Checked it 3 ways

1. irb - non-conclusive

C:\Documents and Settings\Owner>irb
irb(main):001:0> require 'win32/dir'
=> true
irb(main):002:0> Dir::VERSION
(irb):2: warning: toplevel constant VERSION referenced by Dir::VERSION
=> "1.8.6"

2. extra from rdoc on my system

Class Dir
In: lib/win32/dir.rb

Parent: Object

Methods
create_junction empty? junction?
Included Modules
Windows::Directory Windows::Shell Windows::Error Windows::File
Windows::DeviceIO
Constants
VERSION = '0.3.2'

3. gem list

C:\Documents and Settings\Owner>gem query -n win32-dir

*** LOCAL GEMS ***

win32-dir (0.3.2)
    Extra constants and methods for the Dir class on Windows.

It may have been placed in version 0.3.1 but it is not in version
0.3.2

···

On Aug 14, 3:46 pm, Daniel Berger <djber...@gmail.com> wrote:

On Aug 14, 1:15 pm, bbiker <ren...@nc.rr.com> wrote:

> It does not seem to work on my system

> C:\Documents and Settings\Owner>irb
> irb(main):001:0> require 'win32/dir'
> => true
> irb(main):002:0> Dir::empty?('./')
> NoMethodError: undefined method `empty?' for Dir:Class
> from (irb):2

> using win32-dir version 0.3.2

I doubt it:

C:\>irb
irb(main):001:0> require 'win32/dir'
=> true
irb(main):002:0> Dir.empty?('./')
=> false

You're probably using 0.3.0. The Dir.empty? method was added in 0.3.1.
You can check the Dir::VERSION.

Regards,

Dan

Hi,

···

Am Mittwoch, 15. Aug 2007, 00:15:25 +0900 schrieb John Joyce:

On Aug 14, 2007, at 9:24 AM, Bertram Scharpf wrote:

Am Dienstag, 14. Aug 2007, 22:40:58 +0900 schrieb dblack@rubypal.com:

On Tue, 14 Aug 2007, Bertram Scharpf wrote:

First think, then write. Sorry!

Please leave the snideness and nastiness out of it. They add nothing
but snideness and nastiness.

I didn't mean it as harmful as it obviously sounds. Sorry,
again.

Then take your own advice about thinking first and then writing, friend.

I was really hurt by your code.

Bertram

--
Bertram Scharpf
Stuttgart, Deutschland/Germany
http://www.bertram-scharpf.de

Sorry Bertram!! I didn't mean to hurt you!
Maybe I was thinking of "Never Ending Story"

···

On Aug 14, 2007, at 11:17 AM, Bertram Scharpf wrote:

Hi,

Am Mittwoch, 15. Aug 2007, 00:15:25 +0900 schrieb John Joyce:

On Aug 14, 2007, at 9:24 AM, Bertram Scharpf wrote:

Am Dienstag, 14. Aug 2007, 22:40:58 +0900 schrieb >>> dblack@rubypal.com:

On Tue, 14 Aug 2007, Bertram Scharpf wrote:

First think, then write. Sorry!

Please leave the snideness and nastiness out of it. They add nothing
but snideness and nastiness.

I didn't mean it as harmful as it obviously sounds. Sorry,
again.

Then take your own advice about thinking first and then writing, friend.

I was really hurt by your code.

Bertram

Hi,

Sorry Bertram!! I didn't mean to hurt you!
Maybe I was thinking of "Never Ending Story"

In the last days I had removed a bunch of memory leaks and
documentation bugs of another open source project and the
developers there only charged me not to have obeyed some
formalities. Further I have to cope with a spam flood of
some thousands. That all seems it has been too much; I'm a
bit nervous. Please understand.

Bertram

···

Am Mittwoch, 15. Aug 2007, 01:37:00 +0900 schrieb John Joyce:

--
Bertram Scharpf
Stuttgart, Deutschland/Germany
http://www.bertram-scharpf.de