Sha256: 4527ba4a3cc7fd8e55b1f3ac8e63200aacafd71e3f88960d266ebbfac7b4c0f1
Contents?: true
Size: 425 Bytes
Versions: 60
Compression:
Stored size: 425 Bytes
Contents
#!/usr/bin/perl use strict; foreach my $f ('atime', 'blockdev?', 'chardev?', 'ctime', 'directory?', 'executable?', 'executable_real?', 'file?', 'ftype', 'grpowned?', 'mtime', 'owned?', 'pipe?', 'readable?', 'readable_real?', 'setuid?', 'setgid?', 'size', 'socket?', 'sticky?', 'symlink?', 'writeable?', 'writeable_real?', 'zero?') { my $t = "\t"; print "${t}def File.$f(name)\n\t${t}stat(name).$f\n${t}end\n"; }
Version data entries
60 entries across 60 versions & 3 rubygems