Class: ProcessesJasmineDirectives
- Inherits:
-
Sprockets::DirectiveProcessor
- Object
- Sprockets::DirectiveProcessor
- ProcessesJasmineDirectives
- Defined in:
- lib/processes_jasmine_directives.rb
Constant Summary collapse
- ASSET_TYPES =
["css","js"]
Instance Method Summary collapse
Instance Method Details
#process_require_jasmine_directive(asset_type) ⇒ Object
7 8 9 10 11 12 |
# File 'lib/processes_jasmine_directives.rb', line 7 def process_require_jasmine_directive(asset_type) return unless ASSET_TYPES.include?(asset_type) send("require_jasmine_#{asset_type}") send("require_user_#{asset_type}") end |