Sha256: a13338df52f28c255dd30379c38d075502f0c18513a13ffdc657ce03f8fd1248
Contents?: true
Size: 362 Bytes
Versions: 20
Compression:
Stored size: 362 Bytes
Contents
module Mittsu class FileLoader def initialize(manager = nil) @manager = manager || DefaultLoadingManager end def load(url) cached = Cache.get(url) return cached unless cached.nil? @manager.item_start(url) text = File.read(url) Cache.add(url, text) @manager.item_end(url) text end end end
Version data entries
20 entries across 20 versions & 1 rubygems