module Opal

def self.append_path(path)

def self.append_path(path)
  paths << path
end

def self.core_dir

def self.core_dir
  File.join File.dirname(__FILE__), 'assets', 'javascripts'
end

def self.parse(str, file='(file)')

Returns:
  • (String) - the resulting javascript code

Parameters:
  • file (String) -- the filename to use when parsing
  • str (String) -- ruby string to parse
def self.parse(str, file='(file)')
  Parser.new.parse str, file
end

def self.paths

Private, don't add to these directly (use .append_path instead).
def self.paths
  @paths ||= [Opal.core_dir]
end