rubyx-debugger/app/block_view.rb
Torsten Ruger 53d576ef90 showing actual block and actual instruction
time to ponder a little more
2015-07-23 17:26:48 +03:00

24 lines
404 B
Ruby

require "source_view"
class BlockView
include React::Component
required_param :block, type: Virtual::Block
define_state :source
def render
div.row do
div.col_md_6 do
SourceView :source => block.codes.first.source
end
div.col_md_6 do
block.codes.each do |code| #should be block.codes.each
code.to_s.br
end
end
end
end
end