Sha256: 929544e70935c71600b28afa3cc47d544f95bd49db11ef92b43acb6d374a8c2a
Contents?: true
Size: 1.44 KB
Versions: 18
Compression:
Stored size: 1.44 KB
Contents
FILE OBJECT TYPE NAME: file SHORTCUT: dir DESCRIPTION Reference to a file or folder (directory) on disk. The string value of the file object is the path and name of the file. CHILDREN None. MESSAGES read <into.obj> - Read file and put data in the specified object. If the <into.obj> is not specified, the data will be in <it>. write <from.obj> - Write the data in the <from.object> into the file. show - Show the contents of the file. page - Show the contents of the file, paginated open - Open the file with the default application for the type. check_exists - Check to see if the file exists. <It> will be true or false. check_is_file - Check to see if the file specified is a regular file. <It> will be true or false. check_is_dir - Check to see if the file specified is a diretory. <It> will be true or false. find_match - Look for the existence of a file matching the file's pattern. <It> will be true or false. EXAMPLE exists [can] : f [file] : /Users/me/tmp on_load [script] : show "Checking to see if file exists: " + exists.f tell exists.f to check_exists show it tell exists.f to check_is_dir show "is a directory? " + it tell exists.f to check_is_file show "is a file? " + it f [file] : /Users/me/gloo/*.gemspec pattern [script] : tell f to find_match show it SEE ALSO
Version data entries
18 entries across 18 versions & 2 rubygems