clay-yggdrasil - A design pattern for modular objects
Variable
Methods
A public method to expose the private Child_ methods
Destroy all children
Return a count of the number of child objects
Parameters to confer to newly formed children. Should be in the form of a key/value list
Delegates to confer to children. Should be in the form of STUB object
Remove a child object from indexing
Return the child at index specified. If multiple argments are specified the call is projected to calls to the children returned by the higher argument. In the example FOO looks up its 0th child, and asks it for its 1st child, who then asks its 1st child for its own 2nd child, and the result of that us returned.
Example:
FOO child_index 0 1 2
Return the last child in the internal list of children
Return the internal list of children
Ensemble to access the Css private methods
Set the CSS class of the node
Dump the contents of the css settings for this node
Dump the contents of the css settings for this node
Retrieve a single value from the CSS configuration of this node
Set a single value in the CSS configuration of this node
Evaluate a tcl expression in within the namespace of an object
A public method to access the Link private methods
Add a link to an object. Links are indexed by type, and objects can have multiple relationships across multiple types. But object can have only one relationship to another object across on type.
Return the contents of the internal link array
Returns a list of links of the given type. If no list given, the result is the same as Link_dump
Return a list of what types of links this object possesses
Remove a link to an object. If linktype is not specified, or is *, all links are severed.
Assumed link types this object would share with any object who invokes Link_object
Evaluate a script in a text file in the namespace of the object
Return the global ID of the object
TclOO, clay, oo
Programming tools
Copyright © 2019 Sean Woods <yoda@etoyoc.com>