Class: IO
Direct Known Subclasses
Instance Method Summary collapse
-
#stat ⇒ Object
Returns status information for ios as an object of type
File::Stat
.
Instance Method Details
#stat ⇒ Object
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; |