class
Importance_1
Ruby latest stable (v2_5_5) - 0 notes - Superclass: IndexError

Raised when the specified key is not found. It is a subclass of IndexError.

h = {"foo" => :bar}
h.fetch("foo") #=> :bar
h.fetch("baz") #=> KeyError: key not found: "baz"
Show files where this class is defined (1 file)
Register or log in to add new notes.