Sha256: e2f596efe9b743db18abc0b9295fd3b82d9e6ab7b4d91d336e2864d084f69a0e
Contents?: true
Size: 635 Bytes
Versions: 5
Compression:
Stored size: 635 Bytes
Contents
require File.dirname(__FILE__) + "/../../command_handler" module Glimmer module SWT module CommandHandlers class PropertyCommandHandler include CommandHandler def can_handle?(parent, command_symbol, *args, &block) parent.respond_to?(:set_attribute) and parent.respond_to?(:has_attribute?) and args.size > 0 and block == nil and parent.has_attribute?(command_symbol, *args) end def do_handle(parent, command_symbol, *args, &block) parent.set_attribute(command_symbol, *args) nil end end end end end
Version data entries
5 entries across 5 versions & 1 rubygems