Skip to content

Instantly share code, notes, and snippets.

@davidboy
Created July 25, 2012 21:17
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 davidboy/3178723 to your computer and use it in GitHub Desktop.
Save davidboy/3178723 to your computer and use it in GitHub Desktop.
def foo(argument)
array = []
some_loop.each do |i|
array[i] = { child: foo new_argument }
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment