class File
def self.open!(file, *args, &block)
- Since: - 0.5.2
Parameters:
-
file
(String
) -- the filename to open
def self.open!(file, *args, &block) dir = dirname(file) FileUtils.mkdir_p(dir) unless directory?(dir) open(file, *args, &block) end