Method: Mechanize::UnauthorizedError#to_s
- Defined in:
- lib/mechanize/unauthorized_error.rb
permalink #to_s ⇒ Object
[View source]
11 12 13 14 15 16 17 18 19 20 |
# File 'lib/mechanize/unauthorized_error.rb', line 11 def to_s out = super if @challenges then realms = @challenges.map(&:realm_name).join ', ' out << " -- available realms: #{realms}" end out end |