Method: Backup::FileItem::Local#read_file
- Defined in:
- lib/backup/file_item/local.rb
#read_file(file) ⇒ Object
29 30 31 32 33 |
# File 'lib/backup/file_item/local.rb', line 29 def read_file file File.open(file, 'rb') do |f| f.read end if File.exists? file end |