Sha256: a9bc0079233839e2d6b04b907f40537bcfb437f49c2f3fc758c93f24b0f3b25e
Contents?: true
Size: 1 KB
Versions: 1
Compression:
Stored size: 1 KB
Contents
require "rubygems" require "bundler/setup" require 'ruby-event' module RubyApp module Elements require 'rubyapp/element' class Dialog < RubyApp::Element class ShownEvent < RubyApp::Element::Event def initialize(data) super(data) end end class HiddenEvent < RubyApp::Element::Event def initialize(data) super(data) end end template_path(__FILE__) event :shown event :hidden def initialize super end protected def on_event(event) super(event) on_shown(event) if event.is_a?(RubyApp::Elements::Dialog::ShownEvent) on_hidden(event) if event.is_a?(RubyApp::Elements::Dialog::HiddenEvent) end def on_shown(event) shown(event) end def on_hidden(event) hidden(event) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
_rubyapp-0.0.3 | lib/rubyapp/elements/dialog.rb |