Class: SafeFile
- Inherits:
-
File
- Object
- File
- SafeFile
- Defined in:
- lib/onch.rb
Class Method Summary collapse
Class Method Details
.mtime(file) ⇒ Object
4 5 6 7 8 9 10 |
# File 'lib/onch.rb', line 4 def self.mtime(file) if File.exist?(file) return File.mtime(file) else return 0 end end |