Skip to content

Instantly share code, notes, and snippets.

@tim-smart
Forked from kieran/gist:454457
Created June 26, 2010 23:49
Show Gist options
  • Save tim-smart/454462 to your computer and use it in GitHub Desktop.
Save tim-smart/454462 to your computer and use it in GitHub Desktop.
var Route = function(){.....}
Route.prototype.toString = function() {
return "hihi";
}
global.bob = {
route: (new Route)
}
console.log(sys.inspect(bob));
// => { route: [Object] }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment