module Capybara::Mechanize

Constants

VERSION

Public Class Methods

local_hosts() click to toggle source

Host that should be considered local (includes default_host)

# File lib/capybara/mechanize.rb, line 7
def local_hosts
  @local_hosts ||= begin
    default_host = URI.parse(Capybara.default_host || "").host || Capybara.default_host
    [default_host].compact
  end
end
local_hosts=(hosts) click to toggle source
# File lib/capybara/mechanize.rb, line 14
def local_hosts=(hosts)
  @local_hosts = hosts
end