Class: IO

Inherits:
Object show all
Includes:
File::Constants
Defined in:
(unknown)

Direct Known Subclasses

File

Instance Method Summary collapse

Instance Method Details

#statObject

Returns status information for ios as an object of type File::Stat.

f = File.new("testfile")
s = f.stat
"%o" % s.mode   #=> "100644"
s.blksize       #=> 4096
s.atime         #=> Wed Apr 09 08:53:54 CDT 2003


742
743
744
# File 'file.c', line 742

static VALUE
rb_io_stat(obj)
VALUE obj;