Skip to content

Instantly share code, notes, and snippets.

@madrobby madrobby/gist:119378
Created May 28, 2009

Embed
What would you like to do?
var ObjectRange = Class.create(Enumerable, (function() {
function initialize(start, end, exclusive) {
// ...
}
function _each(iterator) {
// ...
}
function include(value) {
// ...
}
return {
initialize: initialize,
_each: _each,
include: include
};
})());
instead of
var ObjectRange = Class.create(Enumerable, {
initialize: function(start, end, exclusive) {
// ...
},
_each: function(iterator) {
// ...
},
include: function(value) {
// ...
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.