instance method RubyVM::InstructionSequence#eval

eval -> object[permalink][rdoc][edit]

self の命令シーケンスを評価してその結果を返します。

RubyVM::InstructionSequence.compile("1 + 2").eval # => 3