class PgConduit::FileWriter
Public Class Methods
new(path)
click to toggle source
# File lib/pg_conduit/file_writer.rb, line 3 def initialize(path) @path = path end
Public Instance Methods
write() { || ... }
click to toggle source
# File lib/pg_conduit/file_writer.rb, line 7 def write open(@path, 'a') { |f| f.puts yield } end