dir.pos â integer Instance Public methods Returns the current position in dir. See also Dir#seek. d = Dir.new("testdir") d.tell #=> 0 d.read #=> "." d.tell #=> 12
dir.pos( integer ) â integer Instance Public methods Synonym for Dir#seek, but returns the position parameter. d = Dir.new("testdir") #=> #<Dir:0x401b3c40> d.read #=> "." i = d.pos #=> 12 d.read #=> ".." d.pos = i #=> 12 d.read #=> ".."
dir.read â string or nil Instance Public methods Reads the next entry from dir and returns it as a string. Returns nil at the end of the stream. d = Dir.new("testdir") d.read #=> "." d.read #=> ".." d.read #=> "config.h"
dir.rewind â dir Instance Public methods Repositions dir to the first entry. d = Dir.new("testdir") d.read #=> "." d.rewind #=> #<Dir:0x401b3fb0> d.read #=> "."
dir.seek( integer ) â dir Instance Public methods Seeks to a particular location in dir. integer must be a value returned by Dir#tell. d = Dir.new("testdir") #=> #<Dir:0x401b3c40> d.read #=> "." i = d.tell #=> 12 d.read #=> ".." d.seek(i) #=> #<Dir:0x401b3c40> d.read #=> ".."
dir.tell â integer Instance Public methods Returns the current position in dir. See also Dir#seek. d = Dir.new("testdir") d.tell #=> 0 d.read #=> "." d.tell #=> 12
dir.path â string or nil Instance Public methods Returns the path parameter passed to dir's constructor. d = Dir.new("..") d.path #=> ".."
new(cfunc, argtypes, n) Class Public methods
bind_at_call(&block) Instance Public methods
create_carrier(data) Instance Public methods
Page 177 of 11844