Class: DecisionAgent::Dmn::Feel::Functions::Replace

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



147
148
149
150
# File 'lib/decision_agent/dmn/feel/functions.rb', line 147

def self.call(args, _context = {})
  validate_arg_count(args, 3)
  args[0].to_s.gsub(args[1].to_s, args[2].to_s)
end