Sha256: 93a39dd74d3e01e7af8518b5d7243a45a3335792681ab845435952315d2545c2
Contents?: true
Size: 489 Bytes
Versions: 7
Compression:
Stored size: 489 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
7 entries across 7 versions & 1 rubygems