Sha256: cdaba1ce51585146386e2d0f54bb06b0ca4be641d6e5ce7ef0f88d82057873a9

Contents?: true

Size: 215 Bytes

Versions: 2

Compression:

Stored size: 215 Bytes

Contents

class File
  # Converts file to string.
  def self.to_string(file)
    IO.read(file)
  end

  # Writes string to file.
  def self.string_to_file(string,file)
    File.open(file,'w') {|f| f.write(string) }
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
cldwalker-core-0.0.0 lib/core/file.rb
cldwalker-core-0.1.0 lib/core/file.rb