Class: Jasmine::Headless::CoffeeScriptCache
- Inherits:
-
CacheableAction
- Object
- CacheableAction
- Jasmine::Headless::CoffeeScriptCache
- Defined in:
- lib/jasmine/headless/coffee_script_cache.rb
Instance Attribute Summary
Attributes inherited from CacheableAction
Class Method Summary collapse
Instance Method Summary collapse
Methods inherited from CacheableAction
cache_dir, cache_dir=, #cache_file, cache_type=, #cached?, enabled=, enabled?, for, #fresh?, #handle, #initialize, #serialize, #unserialize
Constructor Details
This class inherits a constructor from Jasmine::Headless::CacheableAction
Class Method Details
.cache_type ⇒ Object
9 10 11 |
# File 'lib/jasmine/headless/coffee_script_cache.rb', line 9 def cache_type "coffee_script" end |
Instance Method Details
#action ⇒ Object
14 15 16 |
# File 'lib/jasmine/headless/coffee_script_cache.rb', line 14 def action CoffeeScript.compile(File.read(file)) end |