Class: CabezaDeTermo::Assets::AssetReference

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

Overview

A reference to an asset. The reference_id can be any string, such as ‘/vendor/bootstrap/css/bootstrap.min.css’ or

'main_layout'

or anything at all.

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 asset reference to the assets_collector



14
15
16
# File 'lib/cabeza-de-termo/assets/bundles/asset-reference.rb', line 14

def collect_assets_with(assets_collector)
	assets_collector.include reference_id
end