module Mathy module Operations class Subtraction < Operation def initialize(verification) super(verification, "-") end def calculate(operands) operands.inject(0) do |result, x| result + x end end end end end