HEX
Server: Apache
System: Linux vps-cdc32557.vps.ovh.ca 5.15.0-156-generic #166-Ubuntu SMP Sat Aug 9 00:02:46 UTC 2025 x86_64
User: hanode (1017)
PHP: 7.4.33
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: //usr/share/ri/3.0.0/system/Kernel/warn-i.ri
U:RDoc::AnyMethod[iI"	warn:ETI"Kernel#warn;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph;	[
I":If warnings have been disabled (for example with the ;TI"7<code>-W0</code> flag), does nothing.  Otherwise, ;TI"Aconverts each of the messages to strings, appends a newline ;TI"Fcharacter to the string if the string does not end in a newline, ;TI",and calls Warning.warn with the string.;To:RDoc::Markup::BlankLineo:RDoc::Markup::Verbatim;	[I"&  warn("warning 1", "warning 2")
;TI"
;TI"<em>produces:</em>
;TI"
;TI"  warning 1
;TI"  warning 2
;T:@format0o;
;	[I"LIf the <code>uplevel</code> keyword argument is given, the string will ;TI"Abe prepended with information for the given caller frame in ;TI"Athe same format used by the <code>rb_warn</code> C function.;T@o;;	[I"  # In baz.rb
;TI"  def foo
;TI"1    warn("invalid call to foo", uplevel: 1)
;TI"  end
;TI"
;TI"  def bar
;TI"
    foo
;TI"  end
;TI"
;TI"  bar
;TI"
;TI"<em>produces:</em>
;TI"
;TI".  baz.rb:6: warning: invalid call to foo
;T;
0o;
;	[I"MIf <code>category</code> keyword argument is given, passes the category ;TI"Mto <code>Warning.warn</code>.  The category given must be be one of the ;TI"following categories:;T@o:RDoc::Markup::List:
@type:	NOTE:@items[o:RDoc::Markup::ListItem:@label[I":deprecated ;T;	[o;
;	[I"<Used for warning for deprecated functionality that may ;TI"be removed in the future.;To;;[I":experimental ;T;	[o;
;	[I"7Used for experimental features that may change in ;TI"future releases.;T:
@fileI"warning.rb;T:0@omit_headings_from_table_of_contents_below0I"7warn(*msgs, uplevel: nil, category: nil)   -> nil
;T0[I")(*msgs, uplevel: nil, category: nil);T@GFI"Kernel;TcRDoc::NormalModule00