Skip to content

Instantly share code, notes, and snippets.

@StanAngeloff
Created February 28, 2010 20:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save StanAngeloff/317791 to your computer and use it in GitHub Desktop.
Save StanAngeloff/317791 to your computer and use it in GitHub Desktop.
### A House class.
### @author Stan Angeloff
class House
### A buy(..) method
### @access public
### @return void
buy: ->
puts 'I am moving soon...'
### func(..) documented
###
### This is a real nice implementation of func1(..)
func1: ->
### Line 1
->
### Line 2
Hello
# Grab all values of `a` and put in `b`
b: a for a in [1..10]
###
empty: ->
empty(above: 1)
empty(below: 2)
###
###no space
### TAB
(function(){
var House, _a, _b, _c, _d, _e, a, above, b, below, empty, func1;
/**
* A House class.
* @author Stan Angeloff
*/
House = function House() { };
/**
* A buy(..) method
* @access public
* @return void
*/
House.prototype.buy = function buy() {
return puts('I am moving soon...');
};
/**
* func(..) documented
*
* This is a real nice implementation of func1(..)
*/
func1 = function func1() {
/**
* Line 1
*/
return (function() {
/**
* Line 2
*/
return Hello;
});
};
// Grab all values of `a` and put in `b`
b = (function() {
_a = []; _d = 1; _e = 10;
for (_c = 0, a = _d; (_d <= _e ? a <= _e : a >= _e); (_d <= _e ? a += 1 : a -= 1), _c++) {
_a.push(a);
}
return _a;
}).call(this);
/**
*
*/
empty = function empty() { };
empty((above = 1));
empty((below = 2));
/**
*
*/
/**
* no space
*/
/**
* TAB
*/
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment