Class: AssetPacker::Processor::Local::Script
- Inherits:
-
AssetPacker::Processor::Local
- Object
- AssetPacker::Processor
- AssetPacker::Processor::Local
- AssetPacker::Processor::Local::Script
- Defined in:
- lib/asset_packer/processor/local.rb
Instance Attribute Summary
Attributes inherited from AssetPacker::Processor
#asset_dir, #destination, #full_source_uri, #source_uri
Instance Method Summary collapse
Methods inherited from AssetPacker::Processor::Local
Methods inherited from AssetPacker::Processor
#cache, #initialize, #retrieve_asset
Constructor Details
This class inherits a constructor from AssetPacker::Processor
Instance Method Details
#call(doc) ⇒ Object
33 34 35 36 37 |
# File 'lib/asset_packer/processor/local.rb', line 33 def call(doc) doc.replace('script[src]') do |script| script.attr(:src, save_asset(script[:src], 'js')) end end |