Ruby - Operators and Expressions
Find the error in this Ruby code:
class Counter
def initialize
@count = 0
end
def +(value)
@count += value
end
end
c = Counter.new
c + 5
puts c