On Aug 12, 3:01 pm, "Wolfgang N?dasi-donner" <ed.oda... / wonado.de>
wrote:
> Moin, moin!
>
> There is a description for a method that does not exist presented by
> "ri":
>
> >>>>> Console Protocol >>>>>
>
> C:\Dokumente und Einstellungen\wolfgang>ri Dir.empty?
> ------------------------------------------------------------ Dir::empty?
>      Dir::empty?(path)
> ------------------------------------------------------------------------
>      Returns whether or not +path+ is empty. Returns false if +path+ is
>      not a directory, or contains any files other than '.' or '..'.
>
> C:\Dokumente und Einstellungen\wolfgang>irb
> irb(main):001:0> Dir::empty?('./')
> NoMethodError: undefined method `empty?' for Dir:Class
>         from (irb):1
> irb(main):002:0>

You're picking up Dir.empty? from win32-dir, which ships with the one-
click installer. In order to use it, you have to require it first. :)

Regards,

Dan