Method: ThreadParty#initialize
- Defined in:
- lib/threadparty.rb
#initialize(&block) ⇒ ThreadParty
Returns a new instance of ThreadParty.
17 18 19 20 21 |
# File 'lib/threadparty.rb', line 17 def initialize(&block) @to_process = Array.new add(&block) if block self end |