rubyx-debugger/app/debugger.rb
2015-07-23 16:23:10 +03:00

33 lines
684 B
Ruby

class Debugger
include React::Component
required_param :machine , :type => Virtual::Machine
define_state :interpreter => Interpreter.new
def render
div.container do
div.row do
div.col_md_1 do
ClassView classes: machine.space.classes
end
div.col_md_11 do
div.row do
div.col_md_4 do
"Future one"
end
div.col_md_4 do
"Future two"
end
div.col_md_4 do
BlockView block: [ "block 1" , "block 2"]
end
end
RegisterView registers: interpreter.registers
end
end
end
end
end