Sha256: ea221d27c63956558732a433a9342cba9bbe5cac4bf3be7dced16f00af197430
Contents?: true
Size: 623 Bytes
Versions: 4
Compression:
Stored size: 623 Bytes
Contents
# encoding: utf-8 module Veritas class Function class Numeric # A mixin for numeric Binary functions module Binary include Function::Binary # Return the type returned from #call # # @return [Class<Attribute::Numeric>] # # @api public def type util = Attribute left_type = util.infer_type(left) right_type = util.infer_type(right) left_type.equal?(right_type) ? left_type : Attribute::Numeric end end # module Binary end # class Numeric end # class Function end # module Veritas
Version data entries
4 entries across 4 versions & 1 rubygems