⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.133
Server IP:
185.119.109.197
Server:
Linux managedhosting.chostar.me 5.15.0-160-generic #170-Ubuntu SMP Wed Oct 1 10:06:56 UTC 2025 x86_64
Server Software:
Apache
PHP Version:
8.1.33
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
usr
/
share
/
ri
/
3.0.0
/
system
/
Kernel
/
View File Name :
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
-W0
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::BlankLine o:RDoc::Markup::Verbatim; [I"& warn("warning 1", "warning 2") ;TI" ;TI"
produces:
;TI" ;TI" warning 1 ;TI" warning 2 ;T:@format0o; ; [I"LIf the
uplevel
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
rb_warn
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"
produces:
;TI" ;TI". baz.rb:6: warning: invalid call to foo ;T; 0o; ; [I"MIf
category
keyword argument is given, passes the category ;TI"Mto
Warning.warn
. 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"
nil ;T0[ I")(*msgs, uplevel: nil, category: nil);T@GFI"Kernel;TcRDoc::NormalModule00