Class: Jasmine::Headless::CoffeeScriptCache

Inherits:
CacheableAction show all
Defined in:
lib/jasmine/headless/coffee_script_cache.rb

Instance Attribute Summary

Attributes inherited from CacheableAction

#file

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_typeObject



9
10
11
# File 'lib/jasmine/headless/coffee_script_cache.rb', line 9

def cache_type
  "coffee_script"
end

Instance Method Details

#actionObject



14
15
16
# File 'lib/jasmine/headless/coffee_script_cache.rb', line 14

def action
  CoffeeScript.compile(File.read(file))
end