Skip to content

Instantly share code, notes, and snippets.

@sebabelmar
Last active July 18, 2016 18:52
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 sebabelmar/03a7b01338e7dd5e3b574ce429c37bdb to your computer and use it in GitHub Desktop.
Save sebabelmar/03a7b01338e7dd5e3b574ce429c37bdb to your computer and use it in GitHub Desktop.
table_array = [
["brand", "year", "color"],
["specialized", 2001, "blue"],
["bianchi", 1999, "silver"] ,
["yetti", 2016, "red"]
]
# Driver Code
instantiate_bikes(table_array) #=> [<Bike>, <Bike>, <Bike>, ...]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment