Module: CoffeeWithoutNodejs
- Defined in:
- lib/coffee_without_nodejs.rb,
lib/coffee_without_nodejs/version.rb,
lib/coffee_without_nodejs/watcher.rb,
lib/coffee_without_nodejs/compiler.rb
Defined Under Namespace
Modules: CoffeeCompiler
Classes: CoffeeWatcher
Constant Summary
collapse
- VERSION =
[0, 11, 0]
Class Method Summary
collapse
Class Method Details
.compile(coffee, bare = true, create_target_jsfile = false) ⇒ Object
8
9
10
11
12
13
14
|
# File 'lib/coffee_without_nodejs.rb', line 8
def self.compile(coffee, bare=true, create_target_jsfile=false)
if File.file?(coffee)
CoffeeCompiler.compile_file(coffee, bare, create_target_jsfile)
else
CoffeeCompiler.compile(coffee, bare)
end
end
|
.watch! ⇒ Object
16
17
18
|
# File 'lib/coffee_without_nodejs.rb', line 16
def self.watch!
CoffeeWatcher.instance
end
|