Skip to content

Instantly share code, notes, and snippets.

@volh
Created December 12, 2010 02:23
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 volh/737795 to your computer and use it in GitHub Desktop.
Save volh/737795 to your computer and use it in GitHub Desktop.
something = [1,"two",['t','h','r','e','e']][rand(3)]
case something
when Integer
something + 1
when String
something << "flower"
when Array
something + ["forty", "two"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment