Sha256: 15863f5a2ae7e83df4dccc08edaa2338b970a26e623f31b5e3d94819c43d0ffa
Contents?: true
Size: 505 Bytes
Versions: 34
Compression:
Stored size: 505 Bytes
Contents
# Author:: Eric Crane (mailto:eric.crane@mac.com) # Copyright:: Copyright (c) 2019 Eric Crane. All rights reserved. # # Addition operator. # module Gloo module Expr class OpPlus < Gloo::Core::Op # # Perform the operation and return the result. # def perform( left, right ) return left + right.to_s if left.is_a? String 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
34 entries across 34 versions & 1 rubygems