1
0
Fork 0

Updated README with new abstract method implementation

closure/master
Mike Gerwitz 2010-12-27 22:17:21 -05:00
parent e789e58000
commit 46dbf56658
1 changed files with 3 additions and 4 deletions

View File

@ -86,17 +86,16 @@ Abstract classes require that their subtypes implement certain methods. They
cannot be instantiated. Classes are automatically considered to be abstract if
they contain one or more abstract methods.
var Class = require( 'easejs' ).Class,
abstractMethod = Class.abstractMethod;
var Class = require( 'easejs' ).Class;
var AbstractFoo = Class.extend(
{
// a function may be provided if you wish the subtypes to implement a
// certain number of arguments
fooBar: abstractMethod( 'arg' ),
'abstract fooBar': [ 'arg' ],
// alternatively, you needn't supply implementation details
fooBar2: abstractMethod(),
'abstract fooBar2': [],
});
If the abstract method provides implementation details (as shown by