Skip to content

Instantly share code, notes, and snippets.

@cj
Created December 30, 2010 00:39
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 cj/759283 to your computer and use it in GitHub Desktop.
Save cj/759283 to your computer and use it in GitHub Desktop.
name= if previous_keys.length > 0
then "#{main_key}[#{_.implode('][', previous_keys)}][#{key}]"
else "#{main_key}[#{key}]"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment