Module: FilePath::FileManipulationMethods
- Included in:
- FilePath
- Defined in:
- lib/filepath/filepath.rb
Instance Method Summary collapse
Instance Method Details
#open(*args, &block) ⇒ Object
746 747 748 |
# File 'lib/filepath/filepath.rb', line 746 def open(*args, &block) File.open(self, *args, &block) end |
#touch ⇒ Object
750 751 752 753 |
# File 'lib/filepath/filepath.rb', line 750 def touch self.open('a') do ; end File.utime(File.atime(self), Time.now, self) end |