Sha256: ed2fc73dab74b5e0730ff99bcbd7098638e5c77b7171704d772c7f340cbfb734
Contents?: true
Size: 449 Bytes
Versions: 34
Compression:
Stored size: 449 Bytes
Contents
# Author:: Eric Crane (mailto:eric.crane@mac.com) # Copyright:: Copyright (c) 2019 Eric Crane. All rights reserved. # # Division operator. # module Gloo module Expr class OpDiv < Gloo::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
34 entries across 34 versions & 1 rubygems