Class: FSPath
- Inherits:
-
Object
- Object
- FSPath
- Defined in:
- lib/doc/core_ext.rb
Instance Method Summary collapse
Instance Method Details
#rmtree_verbose ⇒ Object
61 62 63 64 |
# File 'lib/doc/core_ext.rb', line 61 def rmtree_verbose require 'fileutils' FileUtils.rm_r(@path, :verbose => true) end |
#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 |