Project

General

Profile

Actions

Bug #446

closed

[PATCH] [DOC] Net::HTTPHeaders#fetch does not return nil but raises IndexError

Added by NoKarma (Arthur Schreiber) over 16 years ago. Updated over 13 years ago.

Status:
Closed
Target version:
-
ruby -v:
-
Backport:
[ruby-core:18309]

Description

=begin
As Hash#fetch, Net::HTTPHeaders#fetch does raise an IndexError when neither a default
value nor a block was passed and the requested key can not be found.

The attached patch updates the documentation for Net::HTTPHeaders#fetch to reflect this.
=end


Files

net_httpheader_fetch_doc.patch (697 Bytes) net_httpheader_fetch_doc.patch NoKarma (Arthur Schreiber), 08/15/2008 09:47 PM
Actions

Also available in: Atom PDF

Like0
Like0Like0