Skip to content
This repository has been archived by the owner on Feb 7, 2019. It is now read-only.

Commit

Permalink
updated readme
Browse files Browse the repository at this point in the history
  • Loading branch information
jakobo committed Apr 26, 2011
1 parent 1df6371 commit fe85fb6
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ Instance Classes:
* **.Class()** Declare a class. This is also the start of the chained methods...
* **.Extends()** (optional) Extend an existing class
* **.Implements()** (optional) Require this object implements a list of methods
* **.Constructor()** (optional) Declare a constructor for this object
* **.Method()** (optional) Add a method to the object's prototype

Static Classes:
Expand All @@ -49,7 +50,7 @@ Static Classes:
* **.Static()** (optional) Adds a static method to the static object
* **.Implements()** (optional) Require this object implements a list of methods

Declaring Functions
Declaring Functions:

Sslac.Function("YourFunction.In.A.Namespace", function funcName() {
});
Expand All @@ -58,6 +59,16 @@ Declaring Functions

* **.Function()** Declare a function object. This does not chain.

Calling Parent Methods:

// ...
.Method("subClassMethod", function subClassMethod(paramOne) {
this.Parent(paramOne);
})
// ...

* **this.Parent()** Call the parent method from within the subclassed method

# Sslac Advanced: Redefining Classes at Runtime

Get an existing method from a definition:
Expand All @@ -74,6 +85,9 @@ Rewire:
});

* **.definitionOf()** Get the definition of a Sslac Namespaced Item. Restarts the chaining (see Instance/Static Classes)
* **.getMethod()** Get the method of the specified name
* **.getStatic()** Get the method of the specified name
* **.getConstructor()** Get the constructor for the defined object

# Building Sslac on your own
You'll need:
Expand Down

0 comments on commit fe85fb6

Please sign in to comment.