Sha256: bd22423116674b0a95ba5c3e433c9f84673317932208ccbea48d009170426263
Contents?: true
Size: 488 Bytes
Versions: 20
Compression:
Stored size: 488 Bytes
Contents
require File.dirname(__FILE__) + "/../command_handler" require File.dirname(__FILE__) + "/models/r_widget" class WidgetMethodCommandHandler include CommandHandler def can_handle?(parent, command_symbol, *args, &block) parent.is_a?(RWidget) 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
Version data entries
20 entries across 20 versions & 1 rubygems