Skip to content

Instantly share code, notes, and snippets.

@Alacrity01
Created June 13, 2019 18:34
Show Gist options
  • Save Alacrity01/688f25024815dd3f6630bbb40e88c561 to your computer and use it in GitHub Desktop.
Save Alacrity01/688f25024815dd3f6630bbb40e88c561 to your computer and use it in GitHub Desktop.
Week 8, Day 4
tasks.each(&:snooze_hour!)
^ same as ^
tasks.each do |task|
task.snooze_hour!
end
words = ['ace', 'butter', 'cats']
loud_words = word.map(&:upcase) -> loud_words is a new array of ['ACE', 'BUTTER', 'CATS']
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment