Class: PomPomPom::FilesystemDownloader

Inherits:
Object
  • Object
show all
Defined in:
lib/pompompom/downloader.rb

Instance Method Summary collapse

Instance Method Details

#get(path) ⇒ Object



14
15
16
17
# File 'lib/pompompom/downloader.rb', line 14

def get(path)
  raise %(Cannot read "#{path}": No such file) unless File.exists?(path)
  File.read(path)
end