Class: DecisionAgent::Dmn::Feel::Functions::DateFunction

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

Overview

DATE/TIME FUNCTIONS (Basic implementations)

Class Method Summary collapse

Methods inherited from Base

register, validate_arg_count

Class Method Details

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



378
379
380
381
# File 'lib/decision_agent/dmn/feel/functions.rb', line 378

def self.call(args, _context = {})
  validate_arg_count(args, 1)
  Types::Date.new(args[0])
end