Class | Merb::Assets::AbstractAssetBundler |
In: |
lib/merb-assets/assets.rb
|
Parent: | Object |
An abstract class for bundling text assets into single files.
add_callback | -> | after_bundling |
&block: | A block to add as a post-bundle callback. |
add_callback { |filename| `yuicompressor #{filename}` }
The type of asset for which the bundler is responsible. Override this method in your bundler code.
NotImplementedError: | This method is implemented by the bundler. |
Symbol: | The type of the asset |
Test if a bundle has been cached.
name<~to_s>: | Name of the bundle |
Boolean: | Whether the bundle has been cached or not. |
name<~to_s>: | Name of the bundle. If name is true, it will be converted to :all. |
*files<String>: | Names of the files to bundle. |