App Academy

Undefined method `sum'

I followed “Ruby Environment Setup” instruction, but looks like array.sum doesn’t work.
I got this warning:
undefined method `sum’ for [1, 2, 3, 4]:Array (NoMethodError)

How can I fix this problem? Thank you.