module RubyApp module Elements module Dialogs require 'rubyapp/elements/dialog' class ExceptionDialog < RubyApp::Elements::Dialog template_path(__FILE__) def initialize(exception) super() require 'rubyapp/elements/exception_element' @exception_element = RubyApp::Elements::ExceptionElement.new(exception) @close = RubyApp::Elements::Link.new @close.clicked do |element, event| event.hide_dialog(self) end end end end end end