Class: Barista::Framework
- Inherits:
-
Object
- Object
- Barista::Framework
- Defined in:
- lib/asset_tasks/barista.rb
Instance Method Summary collapse
Instance Method Details
#output_path_for(file, format = 'js') ⇒ Object
12 13 14 15 16 |
# File 'lib/asset_tasks/barista.rb', line 12 def output_path_for(file, format = 'js') # Strip the leading slashes file = file.to_s.gsub(/^\/+/, '') output_root.join(file).to_s.gsub(/\.[^\.]+$/, ".#{format}") end |
#output_root ⇒ Object
8 9 10 |
# File 'lib/asset_tasks/barista.rb', line 8 def output_root @output_root || Barista.output_root end |