dnaof / 0.0.7 last updated 3 months ago created on Mar 2nd 2014
Install
npm install --save dnaof
Clone
git clone git@github.com:exebook/dnaof.git
dependencies
No dependencies listed.
maintainers
exebook
versions
8 total
| 0.0.7 | 3 months ago | exebook |
| 0.0.6 | a year ago | exebook |
| 0.0.5 | a year ago | exebook |
| 0.0.4 | a year ago | exebook |
| 0.0.3 | a year ago | exebook |
| 0.0.2 | a year ago | exebook |
| 0.0.1 | a year ago | exebook |
| 0.0.0 | a year ago | exebook |
readme
dnaof
kindof(), .can., dnaof() - inheritance made easy
Ever struggled with prototype inheritance? Ever wandered why examples of inheritance do not show inheritance deeper than one level? Want it quick, easy and painless?
kindof() -- creates a new kind (you might want to call it a class or a type)
.can. -- assign a new ability to a kind (method, function)
dnaof() -- call the ancestor method (aka the inherited or super)
======
EXAMPLE
Demonstrate creation of kinds, creating and calling both overloaded and not overloaded methods.