Skip to content

Instantly share code, notes, and snippets.

@jots
Created November 9, 2010 17:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save jots/669415 to your computer and use it in GitHub Desktop.
Save jots/669415 to your computer and use it in GitHub Desktop.
better way to return a hash?
getstyles ->
result = {}
for key in arguments
result[key] = this.getStyle(key)
return result
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment