Class: Allen::AssetBundleCollection
- Inherits:
-
Struct
- Object
- Struct
- Allen::AssetBundleCollection
- Defined in:
- lib/allen/asset_bundle.rb
Instance Attribute Summary collapse
-
#css_bundle ⇒ Object
Returns the value of attribute css_bundle.
-
#js_bundle ⇒ Object
Returns the value of attribute js_bundle.
Instance Method Summary collapse
- #build ⇒ Object (also: #build!)
- #bundles ⇒ Object
- #compress ⇒ Object (also: #compress!)
- #watch ⇒ Object (also: #watch!)
Instance Attribute Details
#css_bundle ⇒ Object
Returns the value of attribute css_bundle
21 22 23 |
# File 'lib/allen/asset_bundle.rb', line 21 def css_bundle @css_bundle end |
#js_bundle ⇒ Object
Returns the value of attribute js_bundle
21 22 23 |
# File 'lib/allen/asset_bundle.rb', line 21 def js_bundle @js_bundle end |
Instance Method Details
#build ⇒ Object Also known as: build!
26 27 28 |
# File 'lib/allen/asset_bundle.rb', line 26 def build bundles.each(&:build) end |
#bundles ⇒ Object
22 23 24 |
# File 'lib/allen/asset_bundle.rb', line 22 def bundles [js_bundle, css_bundle] end |
#compress ⇒ Object Also known as: compress!
30 31 32 |
# File 'lib/allen/asset_bundle.rb', line 30 def compress bundles.each(&:compress) end |
#watch ⇒ Object Also known as: watch!
34 35 36 |
# File 'lib/allen/asset_bundle.rb', line 34 def watch bundles.each(&:watch) end |