File tree 3 files changed +4
-11
lines changed
3 files changed +4
-11
lines changed Original file line number Diff line number Diff line change 6
6
# Opal is a ruby to javascript compiler, with a runtime for running
7
7
# in any javascript environment.
8
8
module Opal
9
-
10
- def self . compile ( source , options = { } )
11
- Compiler . new . compile ( source , options )
12
- end
13
-
14
9
def self . gem_dir
15
10
File . expand_path ( '..' , __FILE__ . untaint )
16
11
end
Original file line number Diff line number Diff line change 4
4
require 'opal/nodes'
5
5
6
6
module Opal
7
+ def self . compile ( source , options = { } )
8
+ Compiler . new . compile ( source , options )
9
+ end
10
+
7
11
class Compiler
8
12
# Generated code gets indented with two spaces on each scope
9
13
INDENT = ' '
Original file line number Diff line number Diff line change 3
3
require 'opal/erb'
4
4
require 'opal/version'
5
5
6
- module Opal
7
- def self . compile ( source , options = { } )
8
- Compiler . new . compile ( source , options )
9
- end
10
- end
11
-
12
6
module Kernel
13
7
def eval ( str )
14
8
code = Opal . compile str
You can’t perform that action at this time.
0 commit comments