Top Level Namespace

Defined Under Namespace

Modules: PostgresCopy, Responders

Instance Method Summary collapse

Instance Method Details

#get_file_mode(mode, encoding = nil) ⇒ Object



3
4
5
6
7
8
9
# File 'lib/postgres-copy/acts_as_copy_target.rb', line 3

def get_file_mode mode, encoding = nil
  if encoding
    "#{mode}:#{encoding}"
  else
    mode
  end
end