rubyx-debugger/app/block_view.rb

24 lines
404 B
Ruby
Raw Normal View History

2015-07-22 21:05:31 +02:00
require "source_view"
2015-07-22 21:05:31 +02:00
class BlockView
include React::Component
required_param :block, type: Virtual::Block
2015-07-22 21:05:31 +02:00
define_state :source
2015-07-22 21:05:31 +02:00
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
2015-07-22 21:05:31 +02:00
end
end
end
end