REDROOM
PHP 8.2.31
Path:
Logout
Edit File
Size: 987 B
Close
/proc/thread-self/root/opt/alt/ruby40/share/ruby/prism/polyfill/warn.rb
Text
Base64
# frozen_string_literal: true # Polyfill for Kernel#warn with the category parameter. Not all Ruby engines # have Method#parameters implemented, so we check the arity instead if # necessary. if (method = Kernel.instance_method(:warn)).respond_to?(:parameters) ? method.parameters.none? { |_, name| name == :category } : (method.arity == -1) Kernel.prepend( Module.new { def warn(*msgs, uplevel: nil, category: nil) # :nodoc: case uplevel when nil super(*msgs) when Integer super(*msgs, uplevel: uplevel + 1) else super(*msgs, uplevel: uplevel.to_int + 1) end end } ) Object.prepend( Module.new { def warn(*msgs, uplevel: nil, category: nil) # :nodoc: case uplevel when nil super(*msgs) when Integer super(*msgs, uplevel: uplevel + 1) else super(*msgs, uplevel: uplevel.to_int + 1) end end } ) end
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 0 × Files: 5
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
append_as_bytes.rb
371 B
lrw-r--r--
2026-05-21 12:15:22
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
byteindex.rb
324 B
lrw-r--r--
2026-05-21 12:15:22
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
scan_byte.rb
294 B
lrw-r--r--
2026-05-21 12:15:22
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
unpack1.rb
536 B
lrw-r--r--
2026-05-21 12:15:22
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
warn.rb
987 B
lrw-r--r--
2026-05-21 12:15:22
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).