Class: AssetLibrary::Compiler::Default

Inherits:
Base
  • Object
show all
Defined in:
lib/asset_library/compiler/default.rb

Instance Attribute Summary

Attributes inherited from Base

#asset_modules, #config

Instance Method Summary collapse

Methods inherited from Base

#add_asset_module, #initialize

Constructor Details

This class inherits a constructor from AssetLibrary::Compiler::Base

Instance Method Details

#write_all_caches(format = nil) ⇒ Object



4
5
6
7
8
9
10
11
12
# File 'lib/asset_library/compiler/default.rb', line 4

def write_all_caches(format = nil)
  asset_modules.each do |asset_module|
    open(output_path(asset_module, format), 'w') do |file|
      input_paths(asset_module, format).each do |path|
        file << File.read(path)
      end
    end
  end
end