Skip to content

Instantly share code, notes, and snippets.

@ryanckulp
Created August 29, 2021 08:36
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 ryanckulp/da7dce22d2235a60b4ae9a17a2afd94d to your computer and use it in GitHub Desktop.
Save ryanckulp/da7dce22d2235a60b4ae9a17a2afd94d to your computer and use it in GitHub Desktop.
# Multi-line inner loop blocks
collection.each do |parameter_name|
# logic_here
end
# Single-line inner loop blocks
collection.each { |parameter_name| logic_here }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment