module Rack::App::Worker::Register
Public Instance Methods
[](name)
click to toggle source
# File lib/rack/app/worker/register.rb, line 16 def [](name) worker_definitions[name.to_sym] end
add(name,class_constructor)
click to toggle source
# File lib/rack/app/worker/register.rb, line 9 def add(name,class_constructor) builder = Rack::App::Worker::Register::Builder.new(name.to_sym) builder.consumer(class_constructor) worker_definitions[name.to_sym]= builder.to_def nil end
worker_definitions()
click to toggle source
# File lib/rack/app/worker/register.rb, line 20 def worker_definitions @worker_definitions ||= {} end