Module: Ruby2JS::Filter::Strict
- Includes:
- SEXP
- Defined in:
- lib/ruby2js/filter/strict.rb
Instance Method Summary collapse
Methods included from SEXP
Instance Method Details
#process(node) ⇒ Object
8 9 10 11 12 13 14 15 |
# File 'lib/ruby2js/filter/strict.rb', line 8 def process(node) if @strict super else @strict = true s(:begin, s(:str, 'use strict'), super(node)) end end |