Sha256: d34c80892539f4c7d6a9ebee257aa03c48f1861a976664d47aec3b3c67045366
Contents?: true
Size: 470 Bytes
Versions: 1
Compression:
Stored size: 470 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 if left.is_a? String return left + right.to_s elsif left.is_a? Integer return left + right.to_i end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
gloo-0.3.0 | lib/gloo/expr/op_plus.rb |