Linux ubuntu22 5.15.0-133-generic #144-Ubuntu SMP Fri Feb 7 20:47:38 UTC 2025 x86_64
nginx/1.18.0
: 128.199.27.159 | : 216.73.216.159
Cant Read [ /etc/named.conf ]
8.1.31
www-data
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
README
+ Create Folder
+ Create File
/
usr /
lib /
ruby /
gems /
3.0.0 /
gems /
rbs-1.0.4 /
core /
[ HOME SHELL ]
Name
Size
Permission
Action
array.rbs
72.62
KB
-rw-r--r--
basic_object.rbs
9.56
KB
-rw-r--r--
binding.rbs
5.31
KB
-rw-r--r--
builtin.rbs
1.36
KB
-rw-r--r--
class.rbs
4.43
KB
-rw-r--r--
comparable.rbs
4.07
KB
-rw-r--r--
complex.rbs
10.87
KB
-rw-r--r--
constants.rbs
434
B
-rw-r--r--
deprecated.rbs
54
B
-rw-r--r--
dir.rbs
13.67
KB
-rw-r--r--
encoding.rbs
11.92
KB
-rw-r--r--
enumerable.rbs
16.38
KB
-rw-r--r--
enumerator.rbs
6.69
KB
-rw-r--r--
errno.rbs
12.63
KB
-rw-r--r--
errors.rbs
14.09
KB
-rw-r--r--
exception.rbs
6.35
KB
-rw-r--r--
false_class.rbs
1.13
KB
-rw-r--r--
fiber.rbs
1.96
KB
-rw-r--r--
fiber_error.rbs
396
B
-rw-r--r--
file.rbs
39.24
KB
-rw-r--r--
file_test.rbs
1.73
KB
-rw-r--r--
float.rbs
20.24
KB
-rw-r--r--
gc.rbs
7.43
KB
-rw-r--r--
hash.rbs
34.02
KB
-rw-r--r--
integer.rbs
20.19
KB
-rw-r--r--
io.rbs
28.26
KB
-rw-r--r--
kernel.rbs
16.7
KB
-rw-r--r--
marshal.rbs
5.6
KB
-rw-r--r--
match_data.rbs
8.84
KB
-rw-r--r--
math.rbs
9.84
KB
-rw-r--r--
method.rbs
5.13
KB
-rw-r--r--
module.rbs
37.41
KB
-rw-r--r--
nil_class.rbs
1.73
KB
-rw-r--r--
numeric.rbs
11.72
KB
-rw-r--r--
object.rbs
26.36
KB
-rw-r--r--
object_space.rbs
3.41
KB
-rw-r--r--
proc.rbs
12.6
KB
-rw-r--r--
process.rbs
40.72
KB
-rw-r--r--
random.rbs
9.67
KB
-rw-r--r--
range.rbs
6.58
KB
-rw-r--r--
rational.rbs
12.72
KB
-rw-r--r--
rb_config.rbs
1.66
KB
-rw-r--r--
regexp.rbs
40.9
KB
-rw-r--r--
ruby_vm.rbs
384
B
-rw-r--r--
signal.rbs
1.81
KB
-rw-r--r--
string.rbs
77.2
KB
-rw-r--r--
string_io.rbs
8.02
KB
-rw-r--r--
struct.rbs
1.23
KB
-rw-r--r--
symbol.rbs
6.96
KB
-rw-r--r--
thread.rbs
34.03
KB
-rw-r--r--
thread_group.rbs
730
B
-rw-r--r--
time.rbs
40.94
KB
-rw-r--r--
trace_point.rbs
7.45
KB
-rw-r--r--
true_class.rbs
1.19
KB
-rw-r--r--
unbound_method.rbs
5.22
KB
-rw-r--r--
warning.rbs
835
B
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : match_data.rbs
# MatchData encapsulates the result of matching a Regexp against string. It is # returned by Regexp#match and String#match, and also stored in a global # variable returned by Regexp.last_match. # # Usage: # # url = 'https://docs.ruby-lang.org/en/2.5.0/MatchData.html' # m = url.match(/(\d\.?)+/) # => #<MatchData "2.5.0" 1:"0"> # m.string # => "https://docs.ruby-lang.org/en/2.5.0/MatchData.html" # m.regexp # => /(\d\.?)+/ # # entire matched substring: # m[0] # => "2.5.0" # # # Working with unnamed captures # m = url.match(%r{([^/]+)/([^/]+)\.html$}) # m.captures # => ["2.5.0", "MatchData"] # m[1] # => "2.5.0" # m.values_at(1, 2) # => ["2.5.0", "MatchData"] # # # Working with named captures # m = url.match(%r{(?<version>[^/]+)/(?<module>[^/]+)\.html$}) # m.captures # => ["2.5.0", "MatchData"] # m.named_captures # => {"version"=>"2.5.0", "module"=>"MatchData"} # m[:version] # => "2.5.0" # m.values_at(:version, :module) # # => ["2.5.0", "MatchData"] # # Numerical indexes are working, too # m[1] # => "2.5.0" # m.values_at(1, 2) # => ["2.5.0", "MatchData"] # # ## Global variables equivalence # # Parts of last MatchData (returned by Regexp.last_match) are also aliased as # global variables: # # * `$~` is Regexp.last_match; # * `$&` is [Regexp.last_match](0); # * `$1`, `$2`, and so on are [Regexp.last_match](i) (captures by number); # * `$`` is Regexp.last_match`.pre_match`; # * `$'` is Regexp.last_match`.post_match`; # * `$+` is [Regexp.last_match](-1) (the last capture). # # # See also "Special global variables" section in Regexp documentation. # class MatchData public # Equality---Two matchdata are equal if their target strings, patterns, and # matched positions are identical. # def ==: (untyped other) -> bool # Match Reference -- MatchData acts as an array, and may be accessed using the # normal array indexing techniques. `mtch[0]` is equivalent to the special # variable `$&`, and returns the entire matched string. `mtch[1]`, `mtch[2]`, # and so on return the values of the matched backreferences (portions of the # pattern between parentheses). # # m = /(.)(.)(\d+)(\d)/.match("THX1138.") # m #=> #<MatchData "HX1138" 1:"H" 2:"X" 3:"113" 4:"8"> # m[0] #=> "HX1138" # m[1, 2] #=> ["H", "X"] # m[1..3] #=> ["H", "X", "113"] # m[-3, 2] #=> ["X", "113"] # # m = /(?<foo>a+)b/.match("ccaaab") # m #=> #<MatchData "aaab" foo:"aaa"> # m["foo"] #=> "aaa" # m[:foo] #=> "aaa" # def []: (Integer idx) -> String? | (Integer start, Integer length) -> ::Array[String?] | (::Range[Integer] range) -> ::Array[String?] | (String | Symbol name) -> String? # Returns the offset of the start of the *n*th element of the match array in the # string. *n* can be a string or symbol to reference a named capture. # # m = /(.)(.)(\d+)(\d)/.match("THX1138.") # m.begin(0) #=> 1 # m.begin(2) #=> 2 # # m = /(?<foo>.)(.)(?<bar>.)/.match("hoge") # p m.begin(:foo) #=> 0 # p m.begin(:bar) #=> 2 # def begin: (Integer | String | Symbol n_or_name) -> Integer? # Returns the array of captures; equivalent to `mtch.to_a[1..-1]`. # # f1,f2,f3,f4 = /(.)(.)(\d+)(\d)/.match("THX1138.").captures # f1 #=> "H" # f2 #=> "X" # f3 #=> "113" # f4 #=> "8" # def captures: () -> ::Array[String?] # Returns the offset of the character immediately following the end of the *n*th # element of the match array in the string. *n* can be a string or symbol to # reference a named capture. # # m = /(.)(.)(\d+)(\d)/.match("THX1138.") # m.end(0) #=> 7 # m.end(2) #=> 3 # # m = /(?<foo>.)(.)(?<bar>.)/.match("hoge") # p m.end(:foo) #=> 1 # p m.end(:bar) #=> 3 # def `end`: (Integer | String | Symbol n_or_name) -> Integer? # Equality---Two matchdata are equal if their target strings, patterns, and # matched positions are identical. # def eql?: (untyped other) -> bool # Produce a hash based on the target string, regexp and matched positions of # this matchdata. # # See also Object#hash. # def hash: () -> Integer # Returns a printable version of *mtch*. # # puts /.$/.match("foo").inspect # #=> #<MatchData "o"> # # puts /(.)(.)(.)/.match("foo").inspect # #=> #<MatchData "foo" 1:"f" 2:"o" 3:"o"> # # puts /(.)(.)?(.)/.match("fo").inspect # #=> #<MatchData "fo" 1:"f" 2:nil 3:"o"> # # puts /(?<foo>.)(?<bar>.)(?<baz>.)/.match("hoge").inspect # #=> #<MatchData "hog" foo:"h" bar:"o" baz:"g"> # def inspect: () -> String # Returns the number of elements in the match array. # # m = /(.)(.)(\d+)(\d)/.match("THX1138.") # m.length #=> 5 # m.size #=> 5 # def length: () -> Integer # Returns a Hash using named capture. # # A key of the hash is a name of the named captures. A value of the hash is a # string of last successful capture of corresponding group. # # m = /(?<a>.)(?<b>.)/.match("01") # m.named_captures #=> {"a" => "0", "b" => "1"} # # m = /(?<a>.)(?<b>.)?/.match("0") # m.named_captures #=> {"a" => "0", "b" => nil} # # m = /(?<a>.)(?<a>.)/.match("01") # m.named_captures #=> {"a" => "1"} # # m = /(?<a>x)|(?<a>y)/.match("x") # m.named_captures #=> {"a" => "x"} # def named_captures: () -> ::Hash[String, String?] # Returns a list of names of captures as an array of strings. It is same as # mtch.regexp.names. # # /(?<foo>.)(?<bar>.)(?<baz>.)/.match("hoge").names # #=> ["foo", "bar", "baz"] # # m = /(?<x>.)(?<y>.)?/.match("a") #=> #<MatchData "a" x:"a" y:nil> # m.names #=> ["x", "y"] # def names: () -> ::Array[String] # Returns a two-element array containing the beginning and ending offsets of the # *n*th match. *n* can be a string or symbol to reference a named capture. # # m = /(.)(.)(\d+)(\d)/.match("THX1138.") # m.offset(0) #=> [1, 7] # m.offset(4) #=> [6, 7] # # m = /(?<foo>.)(.)(?<bar>.)/.match("hoge") # p m.offset(:foo) #=> [0, 1] # p m.offset(:bar) #=> [2, 3] # def offset: (Integer | Symbol | String n_or_name) -> ([ Integer, Integer ] | [ nil, nil ]) # Returns the portion of the original string after the current match. Equivalent # to the special variable `$'`. # # m = /(.)(.)(\d+)(\d)/.match("THX1138: The Movie") # m.post_match #=> ": The Movie" # def post_match: () -> String # Returns the portion of the original string before the current match. # Equivalent to the special variable `$``. # # m = /(.)(.)(\d+)(\d)/.match("THX1138.") # m.pre_match #=> "T" # def pre_match: () -> String # Returns the regexp. # # m = /a.*b/.match("abc") # m.regexp #=> /a.*b/ # def regexp: () -> Regexp # Returns the number of elements in the match array. # # m = /(.)(.)(\d+)(\d)/.match("THX1138.") # m.length #=> 5 # m.size #=> 5 # def size: () -> Integer # Returns a frozen copy of the string passed in to `match`. # # m = /(.)(.)(\d+)(\d)/.match("THX1138.") # m.string #=> "THX1138." # def string: () -> String # Returns the array of matches. # # m = /(.)(.)(\d+)(\d)/.match("THX1138.") # m.to_a #=> ["HX1138", "H", "X", "113", "8"] # # Because `to_a` is called when expanding `*`*variable*, there's a useful # assignment shortcut for extracting matched fields. This is slightly slower # than accessing the fields directly (as an intermediate array is generated). # # all,f1,f2,f3 = * /(.)(.)(\d+)(\d)/.match("THX1138.") # all #=> "HX1138" # f1 #=> "H" # f2 #=> "X" # f3 #=> "113" # def to_a: () -> ::Array[String?] # Returns the entire matched string. # # m = /(.)(.)(\d+)(\d)/.match("THX1138.") # m.to_s #=> "HX1138" # def to_s: () -> String # Uses each *index* to access the matching values, returning an array of the # corresponding matches. # # m = /(.)(.)(\d+)(\d)/.match("THX1138: The Movie") # m.to_a #=> ["HX1138", "H", "X", "113", "8"] # m.values_at(0, 2, -2) #=> ["HX1138", "X", "113"] # # m = /(?<a>\d+) *(?<op>[+\-*\/]) *(?<b>\d+)/.match("1 + 2") # m.to_a #=> ["1 + 2", "1", "+", "2"] # m.values_at(:a, :b, :op) #=> ["1", "2", "+"] # def values_at: (*Integer | Symbol | String n_or_name) -> ::Array[String?] private def initialize_copy: (self object) -> void end
Close