Class: Linner::Cache
Instance Method Summary collapse
Methods included from HashRecursiveMerge
Instance Method Details
#expire_by(paths) ⇒ Object
12 13 14 15 16 17 |
# File 'lib/linner/cache.rb', line 12 def expire_by paths is_include_partial_styles = paths.any? do |path| Asset.new(path).stylesheet? and File.basename(path).start_with? "_" end self.reject! {|k, v| v.stylesheet?} if is_include_partial_styles end |