module FootTraffic

Constants

VERSION

Public Instance Methods

in_thread(&block) click to toggle source
# File lib/foot_traffic/refinements.rb, line 9
def in_thread(&block)
  Thread.new do
    block.call(create_page)
  rescue ThreadError, RuntimeError, Errno::EMFILE, Errno::ECONNRESET
    raise ResourceOverloadError
  end
end
new_tab() click to toggle source
# File lib/foot_traffic/refinements.rb, line 5
def new_tab
  create_page
end