update for rubyx integer and api changes

This commit is contained in:
Torsten Ruger
2019-02-09 13:14:01 +02:00
parent dbb400ac08
commit 14297baeeb
4 changed files with 55 additions and 38 deletions

View File

@ -66,7 +66,8 @@ class SelectView < ElementView
@interpreter.set_state :stopped
@element.at_css(".selected").text = code
ruby = as_main(get_codes[code])
linker = RubyX::RubyXCompiler.new.ruby_to_binary(ruby, :interpreter)
compiler = RubyX::RubyXCompiler.new(RubyX.debugger_options)
linker = compiler.ruby_to_binary(ruby, :interpreter)
@interpreter.start_program(linker)
end

View File

@ -58,6 +58,7 @@ class StatusView < ElementView
end
def status_text
return unless @interpreter.instruction
return "#{@interpreter.instruction.to_s}" unless @interpreter.instruction.source
source = @interpreter.instruction.source
s = "#{source.to_s}"