# encoding: utf-8 module LocalPac class File private attr_reader :extension public attr_accessor :compressed_content attr_reader :path, :name, :content def initialize(path, content = '') @path = path @extension = ::File.extname(path) @name = path.sub(/\..*$/, '').camelize.downcase.to_sym @content = content end def nil? false end def extension?(ext) extension == ext end def prepare(handler) handler.prepare(self) end end end