Class: Assets::Rule::Compile::Javascript::Coffescript

Inherits:
Assets::Rule::Compile::Javascript show all
Defined in:
lib/assets/rule/compile/javascript/coffescript.rb

Overview

Compiler for sass

Constant Summary

Constants inherited from Assets::Rule::Compile::Javascript

MIME

Instance Method Summary collapse

Methods inherited from Assets::Rule::Compile

build, #mime, mime, #name, registry, #target_name, #updated_at

Methods inherited from Assets::Rule

#asset, #fresh_at?, #mime, #rename, #updated_at

Instance Method Details

#bodyString

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Return body

Returns:

  • (String)


16
17
18
# File 'lib/assets/rule/compile/javascript/coffescript.rb', line 16

def body
  binary(::CoffeeScript.compile(utf8(input.body)))
end