This tool searches a given directory and populates a browser window with pertinent information about each discovered class, including properties, methods, and superclasses. Other useful features include opening a class definition file from the browser window, opening a file to the line where a certain method is defined, and printing property help to the console.
Additionally, if the Bioinformatics Toolbox is installed, a tree...
Softcomplex CMS (SCMS) is the web application designed to simplify the static content management of the websites.
The content is described in secure administrative interface as the hierarchy of folders, documents and includable text...
This function displays a graph of the inheritance hierarchy of Matlab Object Oriented Code. It finds all classes below the current working directory and all super classes on the Matlab Path and displays the graph using the bioinformatics toolbox...
mrIRC (Minimalist Ruby IRC) is a lightweight pure Ruby IRC client library based on an inheritance system. The easiest way to connect to an IRC server, join channels, and respond to almost any event by simply defining a method in a sub-class.
Examples of classes inheritance, public and private attributes and methods from chapter 5.7 of the new edition of book by Bogumila and Zbigniew Mrozek. Comments are in Polish and English language.
A tool for managing and organizing classes, with a simple interface and (optional) tree diagram
This is version 0.4.1+ of Class Inheritance Browser, originally released @ http://www.mathworks.com/matlabcentral/fileexchange/27633.
For this description, I will try to illustrate the module with the following term scheme:
1 (root) -> 2 -> 4
-> 5 -> 7
-> 3 -> 6
The basic idea of inheritance is : if you have access to one term...
In many cases, a subclass overrides a method in a parent class, just to change its implementation; in such cases, it would be nice to preserve the overridden method's docstring. The decorator below can be used to achieve this without explicit...
This module provides an easy way to define and use your own around/before/after auxiliary methods, similar to those used in CLOS (Common Lisp Object System).
Take an instance (call it foo) and create a factory class (call it InstanceFactory) that produces foo's. Then inherit from InstanceFactory.
Python's super() provides a unique and amazing capability. It allows subclasses to be written to reorder a chain method calls. The recipe demonstrates all of the tradecraft needed to get super() to do your bidding.
itersubclasses(cls) returns a generator over all subclasses of cls, in depth first order. cls must be a new-style class; old-style classes are not supported.
Inherits method docstrings from parent classes.
MI can be difficult and confusing, and if the base classes don't cooperate -- well, cooperative MI won't work.
One way around this is to use composition instead. This class decorator will combine the source classes with the target...
This is a recipe for defining class hierarchies outside of class definitions. This way you could at, runtime, decide what class should act as the parent of a given class. A class could sometimes have one parent, sometimes another.
You'll find three different approaches to copying the method's docstring to the overriding method on a child class.
The function decorator approach is limited by the fact that you have to know the class when you call the decorator, so...
A simple decorator that helps define abstract methods: when such a method is called, an appropriate exception is raised.
An alternate implementation approach for bound inner classes. For a description of bound inner classes, see this recipe:
This recipe works in both Python 2.6 and 3.1.
Easy to use chain of dictionaries for crafting nested scopes or for a tree of scopes. Useful for analyzing AST nodes, XML nodes or other structures with multiple scopes. Can emulate various chaining styles including static/lexical scoping,...
The Two Sides of Classes
Class inheritance either adds new attributes to a class, or changes existing attributes. However, this distinction is not made in Python's class system. This recipe is a stab at providing that separation. It...