Class: SlimKeyfy::Slimutils::FileWriter

Inherits:
Object
  • Object
show all
Defined in:
lib/slimkeyfy/slimutils/file_utils.rb

Class Method Summary collapse

Class Method Details

.append(full_path, content) ⇒ Object



57
58
59
# File 'lib/slimkeyfy/slimutils/file_utils.rb', line 57

def self.append(full_path, content)
  open(full_path, 'a') { |f| f.puts content}
end

.write(full_path, content) ⇒ Object



54
55
56
# File 'lib/slimkeyfy/slimutils/file_utils.rb', line 54

def self.write(full_path, content)
  File.open(full_path, "w+") { |f| f.write(content) }
end