Public Class methods
new()
[show source]
# File lib/httpx/plugins/expect.rb 15 def initialize 16 @store = [] 17 @mutex = Thread::Mutex.new 18 end
Public Instance methods
add(host)
[show source]
# File lib/httpx/plugins/expect.rb 24 def add(host) 25 @mutex.synchronize { @store << host } 26 end
delete(host)
[show source]
# File lib/httpx/plugins/expect.rb 28 def delete(host) 29 @mutex.synchronize { @store.delete(host) } 30 end
include?(host)
[show source]
# File lib/httpx/plugins/expect.rb 20 def include?(host) 21 @mutex.synchronize { @store.include?(host) } 22 end