Methods

BackgrounDRb::ClientHelper

Public Instance Methods

gen_worker_key(worker_name,worker_key = nil) click to toggle source

(Not documented)

   # File lib/backgroundrb/bdrb_client_helper.rb, line 3
3:     def gen_worker_key(worker_name,worker_key = nil)
4:       return worker_name.to_sym if worker_key.nil?
5:       return "#{worker_name}_#{worker_key}".to_sym
6:     end

secsequence

--- SEC00008

seccomment

--- ""

method_list

--- 
- methods: 
  - visibility: public
    aref: M000011
    name: gen_worker_key
    sourcecode: "   <span class=\"ruby-comment cmt\"># File lib/backgroundrb/bdrb_client_helper.rb, line 3</span>\n\
      3:     <span class=\"ruby-keyword kw\">def</span> <span class=\"ruby-identifier\">gen_worker_key</span>(<span class=\"ruby-identifier\">worker_name</span>,<span class=\"ruby-identifier\">worker_key</span> = <span class=\"ruby-keyword kw\">nil</span>)\n\
      4:       <span class=\"ruby-keyword kw\">return</span> <span class=\"ruby-identifier\">worker_name</span>.<span class=\"ruby-identifier\">to_sym</span> <span class=\"ruby-keyword kw\">if</span> <span class=\"ruby-identifier\">worker_key</span>.<span class=\"ruby-identifier\">nil?</span>\n\
      5:       <span class=\"ruby-keyword kw\">return</span> <span class=\"ruby-node\">&quot;#{worker_name}_#{worker_key}&quot;</span>.<span class=\"ruby-identifier\">to_sym</span>\n\
      6:     <span class=\"ruby-keyword kw\">end</span>"
    params: (worker_name,worker_key = nil)
  category: Instance
  type: Public

sectitle

--- 

[Validate]

Generated with the Darkfish Rdoc Generator.