Skip to content

Instantly share code, notes, and snippets.

@ryanckulp
Created January 1, 2018 23:07
Show Gist options
  • Save ryanckulp/6c9fd80e88de9658b751219982a35f50 to your computer and use it in GitHub Desktop.
Save ryanckulp/6c9fd80e88de9658b751219982a35f50 to your computer and use it in GitHub Desktop.
array with different element types in Ruby
arr = [3, "four", {five: 'six'}]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment