Linux tsuru-no-tsurugi 5.15.0-186-generic #196-Ubuntu SMP Sat Jun 20 16:09:34 UTC 2026 x86_64
Apache/2.4.52 (Ubuntu)
Server IP : 192.168.0.18 & Your IP : 216.73.217.105
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
usr /
lib /
ruby /
3.0.0 /
rdoc /
Delete
Unzip
Name
Size
Permission
Date
Action
context
[ DIR ]
drwxr-xr-x
2026-07-06 06:50
generator
[ DIR ]
drwxr-xr-x
2026-07-06 06:50
i18n
[ DIR ]
drwxr-xr-x
2026-07-06 06:50
markdown
[ DIR ]
drwxr-xr-x
2026-07-06 06:50
markup
[ DIR ]
drwxr-xr-x
2026-07-06 06:50
parser
[ DIR ]
drwxr-xr-x
2026-07-06 06:50
rd
[ DIR ]
drwxr-xr-x
2026-07-06 06:50
ri
[ DIR ]
drwxr-xr-x
2026-07-06 06:50
stats
[ DIR ]
drwxr-xr-x
2026-07-06 06:50
alias.rb
2.12
KB
-rw-r--r--
2021-07-07 19:08
anon_class.rb
172
B
-rw-r--r--
2021-07-07 19:08
any_method.rb
8.05
KB
-rw-r--r--
2021-07-07 19:08
attr.rb
3.76
KB
-rw-r--r--
2021-07-07 19:08
class_module.rb
19.82
KB
-rw-r--r--
2021-07-07 19:08
code_object.rb
9.26
KB
-rw-r--r--
2021-07-07 19:08
code_objects.rb
151
B
-rw-r--r--
2021-07-07 19:08
comment.rb
5.74
KB
-rw-r--r--
2021-07-07 19:08
constant.rb
3.59
KB
-rw-r--r--
2021-07-07 19:08
context.rb
30.27
KB
-rw-r--r--
2021-07-07 19:08
cross_reference.rb
6.53
KB
-rw-r--r--
2021-07-07 19:08
encoding.rb
3.75
KB
-rw-r--r--
2021-07-07 19:08
erb_partial.rb
401
B
-rw-r--r--
2021-07-07 19:08
erbio.rb
1.01
KB
-rw-r--r--
2021-07-07 19:08
extend.rb
170
B
-rw-r--r--
2021-07-07 19:08
generator.rb
1.79
KB
-rw-r--r--
2021-07-07 19:08
ghost_method.rb
144
B
-rw-r--r--
2021-07-07 19:08
i18n.rb
174
B
-rw-r--r--
2021-07-07 19:08
include.rb
172
B
-rw-r--r--
2021-07-07 19:08
known_classes.rb
2.62
KB
-rw-r--r--
2021-07-07 19:08
markdown.rb
386.32
KB
-rw-r--r--
2021-07-07 19:08
markup.rb
28.13
KB
-rw-r--r--
2021-07-07 19:08
meta_method.rb
129
B
-rw-r--r--
2021-07-07 19:08
method_attr.rb
9.03
KB
-rw-r--r--
2021-07-07 19:08
mixin.rb
2.75
KB
-rw-r--r--
2021-07-07 19:08
normal_class.rb
2.13
KB
-rw-r--r--
2021-07-07 19:08
normal_module.rb
1.43
KB
-rw-r--r--
2021-07-07 19:08
options.rb
32.45
KB
-rw-r--r--
2021-07-07 19:08
parser.rb
7.07
KB
-rw-r--r--
2021-07-07 19:08
rd.rb
3.57
KB
-rw-r--r--
2021-07-07 19:08
rdoc.rb
14.1
KB
-rw-r--r--
2026-06-17 20:57
require.rb
965
B
-rw-r--r--
2021-07-07 19:08
ri.rb
345
B
-rw-r--r--
2021-07-07 19:08
rubygems_hook.rb
5.15
KB
-rw-r--r--
2021-07-07 19:08
servlet.rb
12.23
KB
-rw-r--r--
2021-07-07 19:08
single_class.rb
408
B
-rw-r--r--
2021-07-07 19:08
stats.rb
10.48
KB
-rw-r--r--
2021-07-07 19:08
store.rb
22.67
KB
-rw-r--r--
2026-06-17 20:57
task.rb
7.67
KB
-rw-r--r--
2021-07-07 19:08
text.rb
7.4
KB
-rw-r--r--
2021-07-07 19:08
token_stream.rb
3.16
KB
-rw-r--r--
2021-07-07 19:08
tom_doc.rb
6.46
KB
-rw-r--r--
2021-07-07 19:08
top_level.rb
5.54
KB
-rw-r--r--
2021-07-07 19:08
version.rb
75
B
-rw-r--r--
2021-07-07 19:08
Save
Rename
# coding: US-ASCII # frozen_string_literal: true ## # This class is a wrapper around File IO and Encoding that helps RDoc load # files and convert them to the correct encoding. module RDoc::Encoding HEADER_REGEXP = /^ (?: \A\#!.*\n | ^\#\s+frozen[-_]string[-_]literal[=:].+\n | ^\#[^\n]+\b(?:en)?coding[=:]\s*(?<name>[^\s;]+).*\n | <\?xml[^?]*encoding=(?<quote>["'])(?<name>.*?)\k<quote>.*\n )+ /xi # :nodoc: ## # Reads the contents of +filename+ and handles any encoding directives in # the file. # # The content will be converted to the +encoding+. If the file cannot be # converted a warning will be printed and nil will be returned. # # If +force_transcode+ is true the document will be transcoded and any # unknown character in the target encoding will be replaced with '?' def self.read_file filename, encoding, force_transcode = false content = File.open filename, "rb" do |f| f.read end content.gsub!("\r\n", "\n") if RUBY_PLATFORM =~ /mswin|mingw/ utf8 = content.sub!(/\A\xef\xbb\xbf/, '') enc = RDoc::Encoding.detect_encoding content content = RDoc::Encoding.change_encoding content, enc if enc begin encoding ||= Encoding.default_external orig_encoding = content.encoding if not orig_encoding.ascii_compatible? then content = content.encode encoding elsif utf8 then content = RDoc::Encoding.change_encoding content, Encoding::UTF_8 content = content.encode encoding else # assume the content is in our output encoding content = RDoc::Encoding.change_encoding content, encoding end unless content.valid_encoding? then # revert and try to transcode content = RDoc::Encoding.change_encoding content, orig_encoding content = content.encode encoding end unless content.valid_encoding? then warn "unable to convert #{filename} to #{encoding}, skipping" content = nil end rescue Encoding::InvalidByteSequenceError, Encoding::UndefinedConversionError => e if force_transcode then content = RDoc::Encoding.change_encoding content, orig_encoding content = content.encode(encoding, :invalid => :replace, :undef => :replace, :replace => '?') return content else warn "unable to convert #{e.message} for #{filename}, skipping" return nil end end content rescue ArgumentError => e raise unless e.message =~ /unknown encoding name - (.*)/ warn "unknown encoding name \"#{$1}\" for #{filename}, skipping" nil rescue Errno::EISDIR, Errno::ENOENT nil end def self.remove_frozen_string_literal string string =~ /\A(?:#!.*\n)?(.*\n)/ first_line = $1 if first_line =~ /\A# +frozen[-_]string[-_]literal[=:].+$/i string = string.sub first_line, '' end string end ## # Detects the encoding of +string+ based on the magic comment def self.detect_encoding string result = HEADER_REGEXP.match string name = result && result[:name] name ? Encoding.find(name) : nil end ## # Removes magic comments and shebang def self.remove_magic_comment string string.sub HEADER_REGEXP do |s| s.gsub(/[^\n]/, '') end end ## # Changes encoding based on +encoding+ without converting and returns new # string def self.change_encoding text, encoding if text.kind_of? RDoc::Comment text.encode! encoding else # TODO: Remove this condition after Ruby 2.2 EOL if RUBY_VERSION < '2.3.0' text.force_encoding encoding else String.new text, encoding: encoding end end end end