Method: Opal::Nodes::Base#initialize
- Defined in:
- lib/opal/nodes/base.rb
#initialize(sexp, level, compiler) ⇒ Base
Returns a new instance of Base.
36 37 38 39 40 41 42 |
# File 'lib/opal/nodes/base.rb', line 36 def initialize(sexp, level, compiler) @sexp = sexp @type = sexp.type @level = level @compiler = compiler @compiler.top_scope ||= self end |