Method: Jets::PolyFun#task

Defined in:
lib/jets/poly_fun.rb

#taskObject



56
57
58
59
60
61
62
63
# File 'lib/jets/poly_fun.rb', line 56

def task
  task = @app_class.all_public_tasks[@app_meth]
  # Provider user a better error message to user than a nil failure.
  unless task
    raise "Unable to find #{@app_class}##{@app_meth}"
  end
  task
end