Module: Rinline

Extended by:
Rinline
Included in:
Rinline
Defined in:
lib/rinline.rb,
lib/rinline/runner.rb,
lib/rinline/version.rb,
lib/rinline/location.rb,
lib/rinline/optimizer.rb,
lib/rinline/ext/ast_ext.rb,
lib/rinline/ext/iseq_ext.rb,
lib/rinline/ext/method_ext.rb

Defined Under Namespace

Modules: Ext Classes: Location, Optimizer, Runner

Constant Summary collapse

VERSION =
"0.1.0"

Instance Method Summary collapse

Instance Method Details

#optimize(&block) ⇒ Object



14
15
16
17
18
19
20
21
# File 'lib/rinline.rb', line 14

def optimize(&block)
  runner = Runner.new
  Runner.current = runner
  block.call runner
  Runner.current = nil

  $stderr.puts "[Rinline] Optimizing is finised" if runner.debug
end