Module: BackgrounDRb::ClientHelper

Included in:
ClusterConnection
Defined in:
lib/backgroundrb/bdrb_client_helper.rb

Instance Method Summary collapse

Instance Method Details

#gen_worker_key(worker_name, worker_key = nil) ⇒ Object



3
4
5
6
# File 'lib/backgroundrb/bdrb_client_helper.rb', line 3

def gen_worker_key(worker_name,worker_key = nil)
  return worker_name.to_sym if worker_key.nil?
  return "#{worker_name}_#{worker_key}".to_sym
end