Sha256: d743fa8a5d62d8a945f4d0a5180095e7910990b7cc1d6cfd0686689d561bcfe7

Contents?: true

Size: 234 Bytes

Versions: 3

Compression:

Stored size: 234 Bytes

Contents

# -*- encoding: utf-8 -*-

require 'fileutils'

module Genit

  # Write a file on disk.
  class FileWriter
    
    def self.write content, full_path
      File.open(full_path, "w") {|out| out.puts content }
    end
    
  end
  
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
genit-0.4.1 lib/genit/file_writer.rb
genit-0.4 lib/genit/file_writer.rb
genit-0.3 lib/genit/file_writer.rb