Class: Assette::Reader::Coffee

Inherits:
Object
  • Object
show all
Defined in:
lib/assette/readers/coffee.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.comment_strObject



9
10
11
# File 'lib/assette/readers/coffee.rb', line 9

def self.comment_str
  '# %s'
end

.compile_str(text) ⇒ Object



13
14
15
# File 'lib/assette/readers/coffee.rb', line 13

def self.compile_str text
  CoffeeScript.compile text
end

Instance Method Details

#compileObject



5
6
7
# File 'lib/assette/readers/coffee.rb', line 5

def compile
  self.class.compile_str text
end