Sha256: 04cb4650fe022615f5004a14ad905045d61aef9ce2e906c00935239c2c1dcd11

Contents?: true

Size: 168 Bytes

Versions: 10

Compression:

Stored size: 168 Bytes

Contents

class File

  # Append to a file.
  #
  # CREDIT: George Moschovitis

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

end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
facets-2.8.4 lib/core/facets/file/append.rb
facets-2.8.3 lib/core/facets/file/append.rb
facets-2.8.2 lib/core/facets/file/append.rb
facets-2.8.1 lib/core/facets/file/append.rb
facets-2.8.0 lib/core/facets/file/append.rb
facets-2.7.0 lib/core/facets/file/append.rb
facets-2.6.0 lib/core/facets/file/append.rb
facets-2.5.1 lib/core/facets/file/append.rb
facets-2.5.0 lib/core/facets/file/append.rb
facets-2.5.2 lib/core/facets/file/append.rb