Skip to content

Instantly share code, notes, and snippets.

@jearle
Created February 13, 2013 16:12
Show Gist options
  • Select an option

  • Save jearle/4945689 to your computer and use it in GitHub Desktop.

Select an option

Save jearle/4945689 to your computer and use it in GitHub Desktop.
Bird = new Class(function(){
property('name', String)
.get(function(){
this._name;
})
.set(function(name){
this._name = name;
});
public('name', function(){
return 'Sally';
});
public('age', function(){
return 12;
});
static('diplo', function(){
return 'This is diplo';
})
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment