Skip to content

Instantly share code, notes, and snippets.

@MichaelCPell
Created February 20, 2015 21:39
Show Gist options
  • Save MichaelCPell/6e6aef29916790e0e0a8 to your computer and use it in GitHub Desktop.
Save MichaelCPell/6e6aef29916790e0e0a8 to your computer and use it in GitHub Desktop.
Fixed up Syntax
def hash_to_array(h ={})
a = []
h.each do |key, value|
a << key + value
end
a
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment