Exception: LinkChecker::Errors::RedirectLoopError
- Defined in:
- lib/ruby-link-checker/errors/redirect_loop_error.rb
Instance Attribute Summary collapse
-
#urls ⇒ Object
Returns the value of attribute urls.
Instance Method Summary collapse
-
#initialize(urls) ⇒ RedirectLoopError
constructor
A new instance of RedirectLoopError.
- #url ⇒ Object
Constructor Details
#initialize(urls) ⇒ RedirectLoopError
Returns a new instance of RedirectLoopError.
8 9 10 11 |
# File 'lib/ruby-link-checker/errors/redirect_loop_error.rb', line 8 def initialize(urls) @urls = urls super "Redirect loop: #{urls.join(' -> ')}." end |
Instance Attribute Details
#urls ⇒ Object
Returns the value of attribute urls.
6 7 8 |
# File 'lib/ruby-link-checker/errors/redirect_loop_error.rb', line 6 def urls @urls end |
Instance Method Details
#url ⇒ Object
13 14 15 |
# File 'lib/ruby-link-checker/errors/redirect_loop_error.rb', line 13 def url @urls.last end |