REDROOM
PHP 8.2.31
Path:
Logout
Edit File
Size: 638 B
Close
//proc/thread-self/root/opt/alt/ruby31/share/ruby/error_highlight/formatter.rb
Text
Base64
module ErrorHighlight class DefaultFormatter def self.message_for(spot) # currently only a one-line code snippet is supported if spot[:first_lineno] == spot[:last_lineno] indent = spot[:snippet][0...spot[:first_column]].gsub(/[^\t]/, " ") marker = indent + "^" * (spot[:last_column] - spot[:first_column]) "\n\n#{ spot[:snippet] }#{ marker }" else "" end end end def self.formatter Ractor.current[:__error_highlight_formatter__] || DefaultFormatter end def self.formatter=(formatter) Ractor.current[:__error_highlight_formatter__] = formatter end end
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 0 × Files: 4
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
base.rb
12.33 KB
lrw-r--r--
2025-04-28 17:36:06
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
core_ext.rb
1.29 KB
lrw-r--r--
2025-04-28 17:36:06
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
formatter.rb
638 B
lrw-r--r--
2025-04-28 17:36:06
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
version.rb
46 B
lrw-r--r--
2025-04-28 17:36:06
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).