rubyx-debugger/app/main/controllers/sources_controller.rb

13 lines
263 B
Ruby
Raw Normal View History

2015-07-31 18:42:34 +02:00
module Main
class SourcesController < Volt::ModelController
def initialize *args
super(*args)
sources = SourceModel.new
page._sources = sources
@volt_app.interpreter.register_event(:instruction_changed, sources)
end
end
end