Parent

Typhoeus::Multi

Attributes

easy_handles[R]

Public Class Methods

new() click to toggle source
# File lib/typhoeus/multi.rb, line 5
def initialize
  @easy_handles = []
end

Public Instance Methods

add(easy) click to toggle source
# File lib/typhoeus/multi.rb, line 13
def add(easy)
  raise "trying to add easy handle twice" if @easy_handles.include?(easy)
  easy.set_headers() if easy.headers.empty?
  multi_add_handle(easy)
end
cleanup() click to toggle source
# File lib/typhoeus/multi.rb, line 26
def cleanup()
  multi_cleanup
end
perform() click to toggle source
# File lib/typhoeus/multi.rb, line 19
def perform()
  while active_handle_count > 0 do
    multi_perform
  end
  reset_easy_handles
end
remove(easy) click to toggle source
# File lib/typhoeus/multi.rb, line 9
def remove(easy)
  multi_remove_handle(easy) if @easy_handles.include?(easy)
end
reset_easy_handles() click to toggle source
# File lib/typhoeus/multi.rb, line 30
def reset_easy_handles
  @easy_handles.dup.each do |easy|
    multi_remove_handle(easy)
    yield easy if block_given?
  end
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.