Class: YDFileUtils

Inherits:
Object
  • Object
show all
Defined in:
lib/file_processer.rb

Class Method Summary collapse

Class Method Details

.writeFile(filePath, buffer) ⇒ Object



6
7
8
9
10
11
# File 'lib/file_processer.rb', line 6

def self.writeFile (filePath, buffer)
    File.open(filePath, "w") { |source_file|
        source_file.write buffer
    }
    return
end