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)')
-
(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
def self.paths @paths ||= [Opal.core_dir] end