Sha256: 256ff5e70fc6b12bea7648415e1463158d99c882875978b5b267a52c2c05d02d

Contents?: true

Size: 539 Bytes

Versions: 1

Compression:

Stored size: 539 Bytes

Contents

$LOAD_PATH.unshift(File.dirname(__FILE__))
require "coffee_script/lexer"
require "coffee_script/parser"
require "coffee_script/nodes"
require "coffee_script/value"
require "coffee_script/scope"
require "coffee_script/parse_error"

# Namespace for all CoffeeScript internal classes.
module CoffeeScript

  VERSION = '0.1.1'   # Keep in sync with the gemspec.

  # Compile a script (String or IO) to JavaScript.
  def self.compile(script)
    script = script.read if script.respond_to?(:read)
    Parser.new.parse(script).compile
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
coffee-script-0.1.1 lib/coffee-script.rb