Class: CabezaDeTermo::Assets::BundleReference

Inherits:
ReferenceBase show all
Defined in:
lib/cabeza-de-termo/assets/bundles/bundle-reference.rb

Overview

A reference to an assets bundle. The reference_id can be the bundle name, such as :jquery or

:'bootstrap-css'

Instance Method Summary collapse

Methods inherited from ReferenceBase

#initialize, on, #reference_id

Constructor Details

This class inherits a constructor from CabezaDeTermo::Assets::ReferenceBase

Instance Method Details

#collect_assets_with(assets_collector) ⇒ Object

Add the assets referenced by the bundle to the assets_collector



12
13
14
# File 'lib/cabeza-de-termo/assets/bundles/bundle-reference.rb', line 12

def collect_assets_with(assets_collector)
	assets_collector.require reference_id
end