Permalink
Browse files

Update documentation

  • Loading branch information...
1 parent c01e875 commit d402b98be6ec6b002395844b396d46e2cb569943 @mexpolk mexpolk committed Jan 28, 2011
Showing with 34 additions and 34 deletions.
  1. +34 −34 README.rdoc
View
@@ -12,39 +12,39 @@ The phylosophy is that it should not try to emulate other languages, and it pres
=== Usage
- Interface('Editable')({
- constructor: ['x'],
- prototype: ['x']
- });
-
- Module('Composition')({
- y: 5,
- prototype: {
- z: 3
- }
- });
-
- Module('Other')({
- a: 5,
- prototype: {
- b: 3
- }
- });
-
- Class('Overlay').inherits(Widget).ensures(Editable).includes(Composition, Other)({
- html: '<div></div>',
- prototype: {
- initialize: function(element) {
- if (!element) {
- element = document.createElement('div');
- element.innerHTML = 'hola';
- document.body.appendChild(element);
- }
- },
- b: 5
- }
- });
-
+ Interface('Editable')({
+ constructor : ['x'],
+ prototype : ['x']
+ });
+
+ Module('Composition')({
+ y : 5,
+ prototype : {
+ z : 3
+ }
+ });
+
+ Module('Other')({
+ a : 5,
+ prototype : {
+ b : 3
+ }
+ });
+
+ Class('Overlay').inherits(Widget).ensures(Editable).includes(Composition, Other)({
+ html : '<div></div>',
+ prototype : {
+ init : function (element){
+ if(!element){
+ element = document.createElement('div');
+ element.innerHTML = 'hola';
+ document.body.appendChild(element);
+ }
+ },
+ b : 5
+ }
+ });
+
== License
Copyright (c) 2009 Fernando Trasviña
@@ -66,4 +66,4 @@ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

0 comments on commit d402b98

Please sign in to comment.