Module: Jekyll::Minibundle::AssetFileRegistry
- Defined in:
- lib/jekyll/minibundle/asset_file_registry.rb
Class Method Summary collapse
- .bundle_file(site, bundle_config) ⇒ Object
- .clear ⇒ Object
- .stamp_file(site, asset_source_path, asset_destination_path) ⇒ Object
Class Method Details
.bundle_file(site, bundle_config) ⇒ Object
13 14 15 16 |
# File 'lib/jekyll/minibundle/asset_file_registry.rb', line 13 def bundle_file(site, bundle_config) asset_destination_path = "#{bundle_config.fetch('destination_path')}.#{bundle_config.fetch('type')}" @_instances[asset_destination_path] ||= register_bundle_file(site, bundle_config) end |
.clear ⇒ Object
9 10 11 |
# File 'lib/jekyll/minibundle/asset_file_registry.rb', line 9 def clear @_instances = {} end |
.stamp_file(site, asset_source_path, asset_destination_path) ⇒ Object
18 19 20 |
# File 'lib/jekyll/minibundle/asset_file_registry.rb', line 18 def stamp_file(site, asset_source_path, asset_destination_path) @_instances[asset_destination_path] ||= register_stamp_file(site, asset_source_path, asset_destination_path) end |