Sha256: 4c9ebc182de6bc1c5deaefd26efe4718f79dd1e51089a1edc845da560f03a8af
Contents?: true
Size: 418 Bytes
Versions: 6
Compression:
Stored size: 418 Bytes
Contents
module Shutterbug module Storage class FileStorage attr_accessor :filename attr_accessor :config attr_accessor :url def initialize(filename, file_handler) @filename = Configuration.instance.fs_path_for(filename) @url = file_handler.urlify(filename) end def get_content file = File.open(@filename, 'r') return file end end end end
Version data entries
6 entries across 6 versions & 1 rubygems