wonado
August 14, 2007, 9:50pm
21
On Aug 14, 1:33 pm, “Wolfgang Nádasi-donner” [email protected]
wrote:
from (irb):1
=> false
Unfortunately it is not visible in the ri output where the method comes
from.
Wolfgang Nádasi-Donner
Posted viahttp://www.ruby-forum.com/.
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
wonado
August 16, 2007, 1:37am
22
Hi,
Am Mittwoch, 15. Aug 2007, 01:37:00 +0900 schrieb John J.:
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
wonado
September 25, 2007, 11:10pm
23
On Aug 14, 1:15 pm, bbiker [email protected] 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
wonado
September 25, 2007, 11:03pm
24
On Aug 14, 3:46 pm, Daniel B. [email protected] wrote:
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
I am using version 0.3.2
Checked it 3 ways
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”
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’
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