Class: Blade::Assets::Builder
- Inherits:
-
Object
- Object
- Blade::Assets::Builder
- Defined in:
- lib/blade/assets/builder.rb
Instance Attribute Summary collapse
-
#environment ⇒ Object
Returns the value of attribute environment.
Instance Method Summary collapse
- #build ⇒ Object
-
#initialize(environment) ⇒ Builder
constructor
A new instance of Builder.
Constructor Details
#initialize(environment) ⇒ Builder
Returns a new instance of Builder.
4 5 6 |
# File 'lib/blade/assets/builder.rb', line 4 def initialize(environment) @environment = environment end |
Instance Attribute Details
#environment ⇒ Object
Returns the value of attribute environment.
2 3 4 |
# File 'lib/blade/assets/builder.rb', line 2 def environment @environment end |
Instance Method Details
#build ⇒ Object
8 9 10 11 12 13 14 15 16 |
# File 'lib/blade/assets/builder.rb', line 8 def build puts "Building assets…" clean compile clean_dist_path create_dist_path install end |