diff --git a/lib/calculator.rb b/lib/calculator.rb new file mode 100644 index 0000000..9deb4f3 --- /dev/null +++ b/lib/calculator.rb @@ -0,0 +1,5 @@ +class Calculator + def add *numbers + numbers.inject(:+) + end +end