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 : range.rbs
# A `Range` represents an interval—a set of values with a beginning and an # end. Ranges may be constructed using the *s* `..` *e* and *s* `...` *e* # literals, or with [::new](Range#method-c-new). # Ranges constructed using `..` run from the beginning to the end # inclusively. Those created using `...` exclude the end value. When used # as an iterator, ranges return each value in the sequence. # # ```ruby # (-1..-5).to_a #=> [] # (-5..-1).to_a #=> [-5, -4, -3, -2, -1] # ('a'..'e').to_a #=> ["a", "b", "c", "d", "e"] # ('a'...'e').to_a #=> ["a", "b", "c", "d"] # ``` # # # An “endless range” represents a semi-infinite range. Literal notation # for an endless range is: # # (1..) # # or similarly # (1...) # # Which is equivalent to # # ```ruby # (1..nil) # or similarly (1...nil) # Range.new(1, nil) # or Range.new(1, nil, true) # ``` # # Endless ranges are useful, for example, for idiomatic slicing of arrays: # # [1, 2, 3, 4, 5][2...] # => [3, 4, 5] # # Some implementation details: # # - `end` of endless range is `nil` ; # # - `each` of endless range enumerates infinite sequence (may be useful # in combination with # [Enumerable\#take\_while](https://ruby-doc.org/core-2.6.3/Enumerable.html#method-i-take_while) # or similar methods); # # - `(1..)` and `(1...)` are not equal, although technically # representing the same sequence. # # # Ranges can be constructed using any objects that can be compared using # the `<=>` operator. Methods that treat the range as a sequence (\#each # and methods inherited from # [Enumerable](https://ruby-doc.org/core-2.6.3/Enumerable.html) ) expect # the begin object to implement a `succ` method to return the next object # in sequence. The [step](Range#method-i-step) and # [include?](Range#method-i-include-3F) methods # require the begin object to implement `succ` or to be numeric. # # In the `Xs` class below both `<=>` and `succ` are implemented so `Xs` # can be used to construct ranges. Note that the # [Comparable](https://ruby-doc.org/core-2.6.3/Comparable.html) module is # included so the `==` method is defined in terms of `<=>` . # # ```ruby # class Xs # represent a string of 'x's # include Comparable # attr :length # def initialize(n) # @length = n # end # def succ # Xs.new(@length + 1) # end # def <=>(other) # @length <=> other.length # end # def to_s # sprintf "%2d #{inspect}", @length # end # def inspect # 'x' * @length # end # end # ``` # # An example of using `Xs` to construct a range: # # ```ruby # r = Xs.new(3)..Xs.new(6) #=> xxx..xxxxxx # r.to_a #=> [xxx, xxxx, xxxxx, xxxxxx] # r.member?(Xs.new(5)) #=> true # ``` class Range[out Elem] < Object include Enumerable[Elem] def ==: (untyped obj) -> bool def ===: (untyped obj) -> bool # Returns the object that defines the beginning of the range. # # ```ruby # (1..10).begin #=> 1 # ``` def begin: () -> Elem def bsearch: [U] () { (Elem) -> boolish } -> U? def cover?: (untyped obj) -> bool def each: () { (Elem arg0) -> untyped } -> self | () -> ::Enumerator[Elem, self] # Returns the object that defines the end of the range. # # ```ruby # (1..10).end #=> 10 # (1...10).end #=> 10 # ``` def `end`: () -> Elem # Returns `true` if the range excludes its end value. # # ```ruby # (1..5).exclude_end? #=> false # (1...5).exclude_end? #=> true # ``` def `exclude_end?`: () -> bool # Returns the first object in the range, or an array of the first `n` # elements. # # ```ruby # (10..20).first #=> 10 # (10..20).first(3) #=> [10, 11, 12] # ``` def first: () -> Elem | (?Integer n) -> ::Array[Elem] # Compute a hash-code for this range. Two ranges with equal begin and end # points (using `eql?` ), and the same # [exclude\_end?](Range.downloaded.ruby_doc#method-i-exclude_end-3F) value # will generate the same hash-code. # # See also Object\#hash. def hash: () -> Integer def `include?`: (untyped obj) -> bool def initialize: (Elem from, Elem to, ?boolish exclude_end) -> void # Convert this range object to a printable form (using `inspect` to # convert the begin and end objects). def inspect: () -> String # Returns the last object in the range, or an array of the last `n` # elements. # # Note that with no arguments `last` will return the object that defines # the end of the range even if # [exclude\_end?](Range.downloaded.ruby_doc#method-i-exclude_end-3F) is # `true` . # # ```ruby # (10..20).last #=> 20 # (10...20).last #=> 20 # (10..20).last(3) #=> [18, 19, 20] # (10...20).last(3) #=> [17, 18, 19] # ``` def last: () -> Elem | (?Integer n) -> ::Array[Elem] # Returns the maximum value in the range. Returns `nil` if the begin value # of the range larger than the end value. Returns `nil` if the begin value # of an exclusive range is equal to the end value. # # Can be given an optional block to override the default comparison method # `a <=> b` . # # ```ruby # (10..20).max #=> 20 # ``` def max: () -> Elem | () { (Elem arg0, Elem arg1) -> Integer } -> Elem | (?Integer n) -> ::Array[Elem] | (?Integer n) { (Elem arg0, Elem arg1) -> Integer } -> ::Array[Elem] # Returns the minimum value in the range. Returns `nil` if the begin value # of the range is larger than the end value. Returns `nil` if the begin # value of an exclusive range is equal to the end value. # # Can be given an optional block to override the default comparison method # `a <=> b` . # # ```ruby # (10..20).min #=> 10 # ``` def min: () -> Elem | () { (Elem arg0, Elem arg1) -> Integer } -> Elem | (?Integer n) -> ::Array[Elem] | (?Integer n) { (Elem arg0, Elem arg1) -> Integer } -> ::Array[Elem] # Returns the number of elements in the range. Both the begin and the end # of the [Range](Range.downloaded.ruby_doc) must be # [Numeric](https://ruby-doc.org/core-2.6.3/Numeric.html), otherwise nil # is returned. # # ```ruby # (10..20).size #=> 11 # ('a'..'z').size #=> nil # (-Float::INFINITY..Float::INFINITY).size #=> Infinity # ``` def size: () -> Integer? | () -> Float? def step: (?Integer n) { (Elem arg0) -> untyped } -> self | (?Integer n) -> ::Enumerator[Elem, void] # Convert this range object to a printable form (using # [to\_s](Range.downloaded.ruby_doc#method-i-to_s) to convert the begin # and end objects). def to_s: () -> String def eql?: (untyped obj) -> bool def member?: (untyped obj) -> bool end
Close