Method: Jets::PolyFun#task

Defined in:
lib/jets/poly_fun.rb

#taskObject



65
66
67
68
69
70
71
72
# File 'lib/jets/poly_fun.rb', line 65

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