Class: File
- Inherits:
-
Object
- Object
- File
- Defined in:
- lib/kojo/extensions/file.rb
Class Method Summary collapse
Class Method Details
.deep_write(path, content) ⇒ Object
4 5 6 7 |
# File 'lib/kojo/extensions/file.rb', line 4 def self.deep_write(path, content) FileUtils.mkdir_p File.dirname(path) File.write path, content end |