# File lib/monkey/ext/file.rb, line 5 def write(path, content = '', mode = 'w') File.open(path, mode) { |f| f.write content } content end