Method: Markdownplus::Literals::FunctionLiteral#execute

Defined in:
lib/markdownplus/literals.rb

#execute(input, variables, warnings, errors) ⇒ Object



45
46
47
48
49
50
51
52
53
# File 'lib/markdownplus/literals.rb', line 45

def execute(input, variables, warnings, errors)
  handler = HandlerRegistry.handler_instance(self.function_name)
  if handler
    output = handler.execute(input, self.function_parameter_values(nil, variables, warnings, errors), variables, warnings, errors)
  else
    errors << "No handler defined for [#{self.function_name}]"
  end
  output
end