Skip to content

Instantly share code, notes, and snippets.

@austinpray
Forked from hensondev/getter.js
Created February 17, 2017 00:28
Show Gist options
  • Save austinpray/ab2615e21bdf8b228f05c3f804a60414 to your computer and use it in GitHub Desktop.
Save austinpray/ab2615e21bdf8b228f05c3f804a60414 to your computer and use it in GitHub Desktop.
var get = function (name) {
return "public String get" + name.charAt(0).toUpperCase() + name.slice(1,name.length) + "() {\n \treturn this." + name + ";" + "\n}"
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment