以下の内容はhttps://tbpgr.hatenablog.com/entry/20140606/1402062084より取得しました。


Ruby | Kernel | warn

概要

Kernel#warn(*message) -> nil

詳細

message を 標準エラー出力 $stderr に出力します。
$VERBOSE フラグ が nil のときは何も出力しません。
文字列以外のオブジェクトは to_s してから出力する。

サンプルコード
$VERBOSE = nil
warn('warning1')
$VERBOSE = true
warn('warning2')

出力

warning2



以上の内容はhttps://tbpgr.hatenablog.com/entry/20140606/1402062084より取得しました。
このページはhttp://font.textar.tv/のウェブフォントを使用してます

不具合報告/要望等はこちらへお願いします。
モバイルやる夫Viewer Ver0.14