Sha256: 7abb6d2f43f186477a26b2803f27086ec5039aa9ea2f012ec222380b0b6d5ec5
Contents?: true
Size: 636 Bytes
Versions: 55
Compression:
Stored size: 636 Bytes
Contents
module Fox # # A delegator forwards messages to a delegate object. # Delegators are used when you need to multiplex messages # toward any number of target objects. # For example, many controls may be connected to FXDelegator, # instead of directly to the document object. Changing the # delegate in FXDelegator will then reconnect the controls with their # new target. # class FXDelegator < FXObject # The object to which all messages are delegated [FXObject] attr_accessor :delegate # # Construct a new delegator # def initialize(delegate=nil) # :yields: theDelegate end end end
Version data entries
55 entries across 55 versions & 2 rubygems