Method: CM::Plugin::Function#execute

Defined in:
lib/core/plugin/function.rb

#execute(args) ⇒ Object


Operations



27
28
29
30
31
32
33
34
35
# File 'lib/core/plugin/function.rb', line 27

def execute(args)
  if initialized?
    output = ''
    output = yield if block_given?
  else
    output = ''
  end
  output.strip
end