method

warn

v2_4_6 - Show latest stable - Class: Kernel
warn(*args)
public

Displays each of the given messages followed by a record separator on STDERR unless warnings have been disabled (for example with the -W0 flag).

  warn("warning 1", "warning 2")

<em>produces:</em>

  warning 1
  warning 2