Class: Coyote::Assets::CoffeeScript

Inherits:
Base
  • Object
show all
Defined in:
lib/coyote/assets/coffeescript.rb

Instance Attribute Summary

Attributes inherited from Base

#contents, #dependencies, #path, #relative_path

Instance Method Summary collapse

Methods inherited from Base

#dependencies_have_changed?, #find_dependencies, #initialize, require_pattern

Constructor Details

This class inherits a constructor from Coyote::Assets::Base

Instance Method Details

#compile!Object



10
11
12
13
# File 'lib/coyote/assets/coffeescript.rb', line 10

def compile!
  @contents = `cat #{@path} | coffee -sc`
  self
end

#update!Object



5
6
7
8
# File 'lib/coyote/assets/coffeescript.rb', line 5

def update!
  super
  compile!
end