method

new

ruby latest stable - Class: KeyError

Method not available on this version

This method is only available on newer versions. The first available version (v2_6_3) is shown here.

new(p1 = v1, p2 = {})
public

Construct a new KeyError exception with the given message, receiver and key.