Class: RSpecDocumentation::JavascriptBundle
- Inherits:
-
Object
- Object
- RSpecDocumentation::JavascriptBundle
- Defined in:
- lib/rspec_documentation/javascript_bundle.rb
Overview
Compiles Javascript assets into a single file.
Instance Method Summary collapse
Instance Method Details
#flush ⇒ Object
6 7 8 9 |
# File 'lib/rspec_documentation/javascript_bundle.rb', line 6 def flush Util.bundle_dir.join('assets').mkpath javascript_bundle_path.write(RSpecDocumentation.template(:layout, :js).result(binding)) end |