Method: Basefile::FileHandler#encode_file

Defined in:
lib/basefile/file_handler.rb

#encode_fileObject



10
11
12
13
14
15
16
17
# File 'lib/basefile/file_handler.rb', line 10

def encode_file
  if @filein == nil
    return false
  else
    f = File.open(@filein)
    return ::Basefile::Base64Shim.encode(f.read)
  end
end