Skip to content

Instantly share code, notes, and snippets.

@austinpray
Forked from hensondev/getter.js
Last active February 17, 2017 00:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save austinpray/e0c134f45074de04c38f58ce249bd7d4 to your computer and use it in GitHub Desktop.
Save austinpray/e0c134f45074de04c38f58ce249bd7d4 to your computer and use it in GitHub Desktop.
const get = function (name) {
return (
`public String get ${name.charAt(0).toUpperCase()}${name.slice(1)}() {
\treturn this.${name};
}`
);
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment