In Files

    • error.c

    Methods

    Class/Module Index [+]

    Quicksearch
    No matching classes.

    Warning

    The module contains a single method named , and the module extends itself, making Warning.warn available. is called for all warnings issued by Ruby. By default, warnings are printed to $stderr.

    By overriding , you can change how warnings are handled by Ruby, either filtering some warnings, and/or outputting warnings somewhere other than $stderr. When is overridden, super can be called to get the default behavior of printing the warning to $stderr.

    Public Instance Methods

    warn(msg) → nil click to toggle source

    Writes warning message msg to $stderr. This method is called by Ruby for all emitted warnings.

     static VALUE
    rb_warning_s_warn(VALUE mod, VALUE str)
    {
     Check_Type(str, T_STRING);
     rb_must_asciicompat(str);
     rb_write_error_str(str);
     return Qnil;
    }
     

    This page was generated for Ruby

    is a service of and , purveyors of fine dance noise.

    Generated with Ruby-doc Rdoc Generator 0.44.0.