method

warn

ruby latest stable - Class: Warning
warn(p1)
public

Writes warning message msg to $stderr, followed by a newline if the message does not end in a newline. This method is called by Ruby for all emitted warnings.