REDROOM
PHP 8.2.31
Path:
Logout
Edit File
Size: 705 B
Close
//proc/thread-self/root/opt/alt/ruby33/share/rubygems/rubygems/safe_marshal/visitors/stream_printer.rb
Text
Base64
# frozen_string_literal: true require_relative "visitor" module Gem::SafeMarshal module Visitors class StreamPrinter < Visitor def initialize(io, indent: "") @io = io @indent = indent @level = 0 end def visit(target) @io.write("#{@indent * @level}#{target.class}") target.instance_variables.each do |ivar| value = target.instance_variable_get(ivar) next if Elements::Element === value || Array === value @io.write(" #{ivar}=#{value.inspect}") end @io.write("\n") begin @level += 1 super ensure @level -= 1 end end end end end
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 0 × Files: 3
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
stream_printer.rb
705 B
lrw-r--r--
2026-04-07 13:52:24
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
to_ruby.rb
11.03 KB
lrw-r--r--
2026-04-07 13:52:24
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
visitor.rb
2.05 KB
lrw-r--r--
2026-04-07 13:52:24
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).