Class: DecisionAgent::Dmn::Feel::Functions::All

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

Class Method Summary collapse

Methods inherited from Base

register, validate_arg_count

Class Method Details

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



354
355
356
357
358
# File 'lib/decision_agent/dmn/feel/functions.rb', line 354

def self.call(args, _context = {})
  validate_arg_count(args, 1)
  list = Array(args[0])
  list.all? { |item| [true, "true"].include?(item) }
end