Created
February 28, 2010 20:55
-
-
Save StanAngeloff/317791 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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