Class: Axiom::Function::Numeric::Absolute

Inherits:
Axiom::Function::Numeric show all
Includes:
Unary
Defined in:
lib/axiom/function/numeric/absolute.rb

Overview

A class representing an absolute function

Defined Under Namespace

Modules: Methods

Instance Attribute Summary

Attributes included from Operation::Unary

#operand

Class Method Summary collapse

Methods included from Unary

#call, #rename, #type

Methods included from Unary::Callable

#call, #included

Methods included from Operation::Unary

#initialize

Methods inherited from Axiom::Function::Numeric

type

Methods inherited from Axiom::Function

extract_value, rename_attributes, #type

Methods included from Visitable

#accept

Class Method Details

.operationSymbol

Return the absolute operation

Examples:

Absolute.operation  # => :abs

Returns:

  • (Symbol)


19
20
21
# File 'lib/axiom/function/numeric/absolute.rb', line 19

def self.operation
  :abs
end