Sha256: 2ba9cf87fa011c6222d64ef808688c09e59ff1d56a546751766e075f6ca79c14
Contents?: true
Size: 348 Bytes
Versions: 2
Compression:
Stored size: 348 Bytes
Contents
require 'annal/fetch/local_file' require 'annal/fetch/net_file' module Annal module Fetch def self.new(file_identifier) case file_identifier when File LocalFile.new(file_identifier) when %r(https?://) NetFile.new(file_identifier) else LocalFile.new(file_identifier) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
annal-0.0.4 | lib/annal/fetch.rb |
annal-0.0.3 | lib/annal/fetch.rb |