Sha256: 9d0341c9bcd2ffb1a849cedc9b154ed5bfb42fe898b56ed0d4f1a216cf1f6eae
Contents?: true
Size: 525 Bytes
Versions: 1
Compression:
Stored size: 525 Bytes
Contents
class PgExport module Dump class Base extend Forwardable include SizeHuman CHUNK_SIZE = (2**16).freeze def_delegators :file, :path, :read, :write, :rewind, :size, :eof? def initialize @file = Tempfile.new('dump') end def ext raise 'Overwrite it' end def open raise 'Overwrite it' end def to_s "#{name || self.class} #{file.class} (#{size_human})" end private attr_reader :file end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
pg_export-0.3.2 | lib/pg_export/entities/dump/base.rb |