Class: Fontina::Fetchers::LocalFilePath

Inherits:
Object
  • Object
show all
Includes:
Fontina::Fetcher
Defined in:
lib/fontina/fetchers/local_file_path.rb

Constant Summary

Constants included from Fontina::Fetcher

Fontina::Fetcher::Result

Instance Method Summary collapse

Instance Method Details

#fetch(location) ⇒ Object



6
7
8
9
10
# File 'lib/fontina/fetchers/local_file_path.rb', line 6

def fetch(location)
  return super unless location.is_a? String

  Result[IO.binread(location), File.basename(location)]
end