Class: Allen::AssetBundle
- Inherits:
-
Struct
- Object
- Struct
- Allen::AssetBundle
- Defined in:
- lib/allen/asset_bundle.rb
Instance Attribute Summary collapse
-
#input ⇒ Object
Returns the value of attribute input.
-
#output ⇒ Object
Returns the value of attribute output.
-
#preprocessor ⇒ Object
Returns the value of attribute preprocessor.
Instance Method Summary collapse
- #build ⇒ Object (also: #build!)
- #compress ⇒ Object (also: #compress!)
- #watch ⇒ Object (also: #watch!)
Instance Attribute Details
#input ⇒ Object
Returns the value of attribute input
2 3 4 |
# File 'lib/allen/asset_bundle.rb', line 2 def input @input end |
#output ⇒ Object
Returns the value of attribute output
2 3 4 |
# File 'lib/allen/asset_bundle.rb', line 2 def output @output end |
#preprocessor ⇒ Object
Returns the value of attribute preprocessor
2 3 4 |
# File 'lib/allen/asset_bundle.rb', line 2 def preprocessor @preprocessor end |
Instance Method Details
#build ⇒ Object Also known as: build!
3 4 5 |
# File 'lib/allen/asset_bundle.rb', line 3 def build Bundler.with_clean_env { preprocessor.build(input, output) } end |
#compress ⇒ Object Also known as: compress!
7 8 9 |
# File 'lib/allen/asset_bundle.rb', line 7 def compress Bundler.with_clean_env { preprocessor.compress(input, output) } end |
#watch ⇒ Object Also known as: watch!
11 12 13 |
# File 'lib/allen/asset_bundle.rb', line 11 def watch Bundler.with_clean_env { preprocessor.watch(input, output) } end |