Method: WWW::Mechanize#auth

Defined in:
lib/www/mechanize.rb

#auth(user, password) ⇒ Object Also known as: basic_auth

Sets the user and password to be used for authentication.



189
190
191
192
# File 'lib/www/mechanize.rb', line 189

def auth(user, password)
  @user       = user
  @password   = password
end