Method: FSPath#touch
- Defined in:
- lib/doc/core_ext.rb
#touch(atime = nil, mtime = nil) ⇒ Object
56 57 58 59 |
# File 'lib/doc/core_ext.rb', line 56 def touch(atime = nil, mtime = nil) open('w'){} unless exist? utime(atime ||= Time.now, mtime || atime) end |