Sha256: 3f6e4f29a2d85b6341a07ab881ed21382b05693af4bce00671bb28bd0b106017

Contents?: true

Size: 536 Bytes

Versions: 1

Compression:

Stored size: 536 Bytes

Contents

# encoding: utf-8

module Axiom
  class Function
    class Numeric

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

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

      end # module Unary
    end # class Numeric
  end # class Function
end # module Axiom

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
axiom-0.1.0 lib/axiom/function/numeric/unary.rb