Class: RubyVM::InstructionSequence

Inherits:
Object
  • Object
show all
Defined in:
lib/rstfilter/exec_setup.rb

Constant Summary collapse

RST_FILENAME =
RST_MOD_SRC =
File.read(ENV['RSTFILTER_MOD_SRC_PATH'])

Class Method Summary collapse

Class Method Details

.translate(iseq) ⇒ Object



88
89
90
91
92
93
# File 'lib/rstfilter/exec_setup.rb', line 88

def self.translate iseq
  if !@found && iseq.path == RST_FILENAME && iseq.label == "<main>"
    @found = true
    RubyVM::InstructionSequence.compile RST_MOD_SRC, RST_FILENAME
  end
end