Sha256: ad45e24332ddac89f2a3b63794282d2d29163bb120847cf145efb64b8a81c1c3
Contents?: true
Size: 462 Bytes
Versions: 29
Compression:
Stored size: 462 Bytes
Contents
# Author:: Eric Crane (mailto:eric.crane@mac.com) # Copyright:: Copyright (c) 2019 Eric Crane. All rights reserved. # # Subtraction operator. # module GlooLang module Expr class OpMinus < GlooLang::Core::Op # # Perform the operation and return the result. # def perform( left, right ) return left - right.to_i if left.is_a? Integer return left - right.to_f if left.is_a? Numeric end end end end
Version data entries
29 entries across 29 versions & 1 rubygems