rubyx-debugger/app/main/controllers/blocks_controller.rb
2015-07-31 19:42:34 +03:00

13 lines
258 B
Ruby

module Main
class BlocksController < Volt::ModelController
def initialize *args
super(*args)
blocks = BlocksModel.new
page._blocks = blocks
@volt_app.interpreter.register_event(:instruction_changed, blocks)
end
end
end