From 789ca3606d0171dea8b050accf2849ecb350ec65 Mon Sep 17 00:00:00 2001 From: Johnson Denen Date: Wed, 9 Sep 2015 16:56:17 -0400 Subject: [PATCH] Make acceptance tests pass --- lib/calculator.rb | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 lib/calculator.rb 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