Reverse Polish Calculator in Ruby