Sha256: d01dab09a29583f5c9f1838884cebc6e8bbd77a1372f6ef7c3a6054503d7994d

Contents?: true

Size: 463 Bytes

Versions: 3

Compression:

Stored size: 463 Bytes

Contents

# encoding: utf-8

module Veritas
  class Function
    class Numeric

      # A mixin for numeric Unary functions
      module Unary
        include Function::Unary

        # Return the type returned from #call
        #
        # @return [Class<Attribute::Numeric>]
        #
        # @api public
        def type
          Attribute.infer_type(operand)
        end

      end # module Unary
    end # class Numeric
  end # class Function
end # module Veritas

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
veritas-0.0.6 lib/veritas/function/numeric/unary.rb
veritas-0.0.5 lib/veritas/function/numeric/unary.rb
veritas-0.0.4 lib/veritas/function/numeric/unary.rb