Method: File.append

Defined in:
lib/core/facets/file/append.rb

.append(file, str) ⇒ Object

Append to a file.

CREDIT: George Moschovitis



7
8
9
10
11
# File 'lib/core/facets/file/append.rb', line 7

def self.append(file, str)
  File.open(file, 'ab') { |f|
    f << str
  }
end