add extra files

This commit is contained in:
2021-01-22 23:16:02 -05:00
parent 5b32cb677a
commit e657af0635
25 changed files with 7698 additions and 0 deletions

13
ruby/soda_methods.rb Normal file
View File

@@ -0,0 +1,13 @@
def order_soda(flavor, size = "medium", quantity = 1)
if quantity == 1
plural = "soda"
else
plural = "sodas"
end
puts "#{quantity} #{size} #{flavor} #{plural}!"
end
order_soda("orange")
order_soda("lemon-lime", "small", 2)
order_soda("grape", "large")