Module: Capybara::Mechanize

Defined in:
lib/capybara/mechanize/version.rb,
lib/capybara/mechanize.rb

Defined Under Namespace

Classes: Browser, Driver, Form, Node

Constant Summary collapse

VERSION =
'1.11.0'

Class Method Summary collapse

Class Method Details

.local_hostsObject

Host that should be considered local (includes default_host)


7
8
9
10
11
12
# 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) ⇒ Object


14
15
16
# File 'lib/capybara/mechanize.rb', line 14

def local_hosts=(hosts)
  @local_hosts = hosts
end