Sha256: a3c63f81d6b620d232ffef732b2f1e496bbe1f88fb783df0aff2512c27acab8f

Contents?: true

Size: 165 Bytes

Versions: 1

Compression:

Stored size: 165 Bytes

Contents

module PgConduit
  class FileWriter
    def initialize(path)
      @path = path
    end

    def write
      open(@path, 'a') { |f| f.puts yield }
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
pg_conduit-0.1.0 lib/pg_conduit/file_writer.rb