module Filepath::ContentChanges
Public Instance Methods
append(content)
click to toggle source
# File lib/filepath/filepath.rb, line 896 def append(content) open('a') do |file| file.write(content) end end
truncate(*args)
click to toggle source
# File lib/filepath/filepath.rb, line 904 def truncate(*args) if args.empty? args << 0 end file_truncate(*args) end
write(content)
click to toggle source
# File lib/filepath/filepath.rb, line 890 def write(content) open('w') do |file| file.write(content) end end