class SyntaxTree::YARV::Decompiler
This class is responsible for taking a compiled instruction sequence and walking through it to generate equivalent Ruby code.
Attributes
block_label[R]
iseq[R]
Public Class Methods
new(iseq)
click to toggle source
# File lib/syntax_tree/yarv/decompiler.rb, line 32 def initialize(iseq) @iseq = iseq @block_label = BlockLabel.new("__block_label") end
Public Instance Methods
to_ruby()
click to toggle source
# File lib/syntax_tree/yarv/decompiler.rb, line 37 def to_ruby Program(decompile(iseq)) end