Class: CabezaDeTermo::AssetsPublisher::AssetType
- Inherits:
-
Object
- Object
- CabezaDeTermo::AssetsPublisher::AssetType
show all
- Defined in:
- lib/cabeza-de-termo/assets-publisher/assets/types/asset-type.rb
Instance Method Summary
collapse
Instance Method Details
#collect_assets_from(rendering_scope) ⇒ Object
Collect the assets to publish from the rendering_scope
12
13
14
15
16
|
# File 'lib/cabeza-de-termo/assets-publisher/assets/types/asset-type.rb', line 12
def collect_assets_from(rendering_scope)
collect_uri_from(rendering_scope).collect do |uri|
new_asset_from_uri(uri)
end
end
|
#collect_uri_from(rendering_scope) ⇒ Object
Collect the javascripts uri from the rendering_scope
24
25
26
|
# File 'lib/cabeza-de-termo/assets-publisher/assets/types/asset-type.rb', line 24
def collect_uri_from(rendering_scope)
CdT.subclass_responsibility
end
|
#compiler ⇒ Object
28
29
30
|
# File 'lib/cabeza-de-termo/assets-publisher/assets/types/asset-type.rb', line 28
def compiler()
CdT.subclass_responsibility
end
|
#configuration ⇒ Object
36
37
38
|
# File 'lib/cabeza-de-termo/assets-publisher/assets/types/asset-type.rb', line 36
def configuration()
Publisher.configuration
end
|
#html_for(asset_uri) ⇒ Object
7
8
9
|
# File 'lib/cabeza-de-termo/assets-publisher/assets/types/asset-type.rb', line 7
def html_for(asset_uri)
CdT.subclass_responsibility
end
|
#new_asset_from_uri(uri) ⇒ Object
Answer a new Asset from the uri and type
19
20
21
|
# File 'lib/cabeza-de-termo/assets-publisher/assets/types/asset-type.rb', line 19
def new_asset_from_uri(uri)
Asset.on_uri self, uri
end
|
#rendering_scope_assets_collector ⇒ Object
32
33
34
|
# File 'lib/cabeza-de-termo/assets-publisher/assets/types/asset-type.rb', line 32
def rendering_scope_assets_collector()
configuration.rendering_scope_assets_collector
end
|