Because #ruby is fun:
['this', 'will', 'work'].sum
-
-
Replying to @MarmiteJunction
NoMethodError: undefined method `sum' for ["this", "will", "work"]:Array ruby 2.0.0p648
1 reply 0 retweets 0 likes -
Replying to @rgarner
There might be an activesupport method in there. Or possibly later ruby (I'm in a rails env in 2.2.2)
3 replies 0 retweets 0 likes
Replying to @MarmiteJunction @rgarner
ActiveSupport provides it, Ruby added a sum method which behaves slightly differently in 2.4
6:31 AM - 5 Jun 2017
0 replies
0 retweets
0 likes
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.