Sha256: 771abc76569ac27326e6cad7ea9f45b427d44530450c24b9f80e5ec262ebe486
Contents?: true
Size: 610 Bytes
Versions: 4
Compression:
Stored size: 610 Bytes
Contents
require File.dirname(__FILE__) + "/../command_handler" require File.dirname(__FILE__) + "/models/g_shell" require File.dirname(__FILE__) + "/models/g_tab_item_composite" module Glimmer class TabItemCommandHandler include CommandHandler include Glimmer def can_handle?(parent, command_symbol, *args, &block) parent.is_a?(GWidget) and command_symbol.to_s == "tab_item" end def do_handle(parent, command_symbol, *args, &block) tab_item = GWidget.new(command_symbol.to_s, parent.widget, args) GTabItemComposite.new(tab_item, parent.widget, args) end end end
Version data entries
4 entries across 4 versions & 1 rubygems