Compile a script (String or IO) to JavaScript.
# File lib/coffee_script.rb, line 47 def compile(script, options = {}) script = script.read if script.respond_to?(:read) if options.key?(:bare) elsif options.key?(:no_wrap) options[:bare] = options[:no_wrap] else options[:bare] = false end Source.context.call("CoffeeScript.compile", script, options) end
Generated with the Darkfish Rdoc Generator 2.