Class: DecisionAgent::Dmn::Feel::Functions::Abs

Inherits:
Base
  • Object
show all
Defined in:
lib/decision_agent/dmn/feel/functions.rb

Overview

NUMERIC FUNCTIONS

Class Method Summary collapse

Methods inherited from Base

register, validate_arg_count

Class Method Details

.call(args, _context = {}) ⇒ Object



160
161
162
163
# File 'lib/decision_agent/dmn/feel/functions.rb', line 160

def self.call(args, _context = {})
  validate_arg_count(args, 1)
  args[0].to_f.abs
end