Sha256: 5b6e2be3e0507d917e0066e63fa7dc122c33a4204a95889621c9c46317e6a242
Contents?: true
Size: 279 Bytes
Versions: 1
Compression:
Stored size: 279 Bytes
Contents
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
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
mathy-0.0.1 | lib/mathy/operations/subtraction.rb |