touch
-
Ruby’s
Fileclass does not have an equivalent of PHP’stouchfunction. However, you can useFileUtilsfrom the Ruby Standard Library to a touch file.PHP
touch('/path/to/foobar');
Ruby
require 'fileutils' FileUtils.touch '/path/to/foobar'
Looking for Rails or PHP web application development, integration, and training?
Rails for PHP is brought to you by Maintainable Software. Get custom web applications and personalized training from the authors of the book and website.

