Skip to content

Instantly share code, notes, and snippets.

@roykolak
Forked from dkordik/object_class.js
Created October 6, 2011 21:37
Show Gist options
  • Save roykolak/1268750 to your computer and use it in GitHub Desktop.
Save roykolak/1268750 to your computer and use it in GitHub Desktop.
Ruby's .class for Javascript... kinda
Object.prototype.class = function () {
return "8th Grade";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment