Sha256: e24e2bd298f4c2b778ef95577dae30c01a36429bb90e294a35585cdb9afefc29
Contents?: true
Size: 461 Bytes
Versions: 1
Compression:
Stored size: 461 Bytes
Contents
module PlatinaWorld module Fetcher class Base # @uri [URI::HTTP, URI::HTTPS, URI:Generic] def initialize(uri) @uri = uri end def fetch if valid? fetch_contents else fail "invalid file path: #{@uri}" end end private def valid? raise NotImplementedError end def fetch_contents raise NotImplementedError end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
platina_world-0.1.5 | lib/platina_world/fetchers/base.rb |