Skip to content

Instantly share code, notes, and snippets.

@isotes
Created July 22, 2020 07:06
Show Gist options
  • Save isotes/443b3dd9c684869d5dd560ed3f5cf087 to your computer and use it in GitHub Desktop.
Save isotes/443b3dd9c684869d5dd560ed3f5cf087 to your computer and use it in GitHub Desktop.
Sum up command line arguments
puts ARGV.map(&:to_i).sum
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment