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 : trace_point.rbs
# Document-class: TracePoint # # A class that provides the functionality of Kernel#set_trace_func in a nice # Object-Oriented API. # # ## Example # # We can use TracePoint to gather information specifically for exceptions: # # trace = TracePoint.new(:raise) do |tp| # p [tp.lineno, tp.event, tp.raised_exception] # end # #=> #<TracePoint:disabled> # # trace.enable # #=> false # # 0 / 0 # #=> [5, :raise, #<ZeroDivisionError: divided by 0>] # # ## Events # # If you don't specify the type of events you want to listen for, TracePoint # will include all available events. # # **Note** do not depend on current event set, as this list is subject to # change. Instead, it is recommended you specify the type of events you want to # use. # # To filter what is traced, you can pass any of the following as `events`: # # `:line` # : execute code on a new line # `:class` # : start a class or module definition # `:end` # : finish a class or module definition # `:call` # : call a Ruby method # `:return` # : return from a Ruby method # `:c_call` # : call a C-language routine # `:c_return` # : return from a C-language routine # `:raise` # : raise an exception # `:b_call` # : event hook at block entry # `:b_return` # : event hook at block ending # `:thread_begin` # : event hook at thread beginning # `:thread_end` # : event hook at thread ending # `:fiber_switch` # : event hook at fiber switch # `:script_compiled` # : new Ruby code compiled (with `eval`, `load` or `require`) # # class TracePoint < Object # Returns a new TracePoint object, not enabled by default. # # Next, in order to activate the trace, you must use TracePoint#enable # # trace = TracePoint.new(:call) do |tp| # p [tp.lineno, tp.defined_class, tp.method_id, tp.event] # end # #=> #<TracePoint:disabled> # # trace.enable # #=> false # # puts "Hello, TracePoint!" # # ... # # [48, IRB::Notifier::AbstractNotifier, :printf, :call] # # ... # # When you want to deactivate the trace, you must use TracePoint#disable # # trace.disable # # See TracePoint@Events for possible events and more information. # # A block must be given, otherwise an ArgumentError is raised. # # If the trace method isn't included in the given events filter, a RuntimeError # is raised. # # TracePoint.trace(:line) do |tp| # p tp.raised_exception # end # #=> RuntimeError: 'raised_exception' not supported by this event # # If the trace method is called outside block, a RuntimeError is raised. # # TracePoint.trace(:line) do |tp| # $tp = tp # end # $tp.lineno #=> access from outside (RuntimeError) # # Access from other threads is also forbidden. # def initialize: (*Symbol events) { (TracePoint tp) -> void } -> void # Returns internal information of TracePoint. # # The contents of the returned value are implementation specific. It may be # changed in future. # # This method is only for debugging TracePoint itself. # def self.stat: () -> untyped # Document-method: trace # # A convenience method for TracePoint.new, that activates the trace # automatically. # # trace = TracePoint.trace(:call) { |tp| [tp.lineno, tp.event] } # #=> #<TracePoint:enabled> # # trace.enabled? #=> true # def self.trace: (*Symbol events) { (TracePoint tp) -> void } -> TracePoint # Return the generated binding object from event # def binding: () -> Binding # Return the called name of the method being called # def callee_id: () -> Symbol # Return class or module of the method being called. # # class C; def foo; end; end # trace = TracePoint.new(:call) do |tp| # p tp.defined_class #=> C # end.enable do # C.new.foo # end # # If method is defined by a module, then that module is returned. # # module M; def foo; end; end # class C; include M; end; # trace = TracePoint.new(:call) do |tp| # p tp.defined_class #=> M # end.enable do # C.new.foo # end # # **Note:** #defined_class returns singleton class. # # 6th block parameter of Kernel#set_trace_func passes original class of attached # by singleton class. # # **This is a difference between Kernel#set_trace_func and TracePoint.** # # class C; def self.foo; end; end # trace = TracePoint.new(:call) do |tp| # p tp.defined_class #=> #<Class:C> # end.enable do # C.foo # end # def defined_class: () -> Module # Deactivates the trace # # Return true if trace was enabled. Return false if trace was disabled. # # trace.enabled? #=> true # trace.disable #=> true (previous status) # trace.enabled? #=> false # trace.disable #=> false # # If a block is given, the trace will only be disable within the scope of the # block. # # trace.enabled? # #=> true # # trace.disable do # trace.enabled? # # only disabled for this block # end # # trace.enabled? # #=> true # # Note: You cannot access event hooks within the block. # # trace.disable { p tp.lineno } # #=> RuntimeError: access from outside # def disable: () -> bool | () { () -> void } -> void # Activates the trace. # # Returns `true` if trace was enabled. Returns `false` if trace was disabled. # # trace.enabled? #=> false # trace.enable #=> false (previous state) # # trace is enabled # trace.enabled? #=> true # trace.enable #=> true (previous state) # # trace is still enabled # # If a block is given, the trace will only be enabled within the scope of the # block. # # trace.enabled? # #=> false # # trace.enable do # trace.enabled? # # only enabled for this block # end # # trace.enabled? # #=> false # # `target`, `target_line` and `target_thread` parameters are used to limit # tracing only to specified code objects. `target` should be a code object for # which RubyVM::InstructionSequence.of will return an instruction sequence. # # t = TracePoint.new(:line) { |tp| p tp } # # def m1 # p 1 # end # # def m2 # p 2 # end # # t.enable(target: method(:m1)) # # m1 # # prints #<TracePoint:line@test.rb:5 in `m1'> # m2 # # prints nothing # # Note: You cannot access event hooks within the `enable` block. # # trace.enable { p tp.lineno } # #=> RuntimeError: access from outside # def enable: () -> bool | () { () -> void } -> void # The current status of the trace # def enabled?: () -> bool # Return a string containing a human-readable TracePoint status. # def inspect: () -> String # Line number of the event # def lineno: () -> Integer # Return the name at the definition of the method being called # def method_id: () -> Symbol # Path of the file being run # def path: () -> String # Value from exception raised on the `:raise` event # def raised_exception: () -> untyped # Return value from `:return`, `c_return`, and `b_return` event # def return_value: () -> untyped # Return the trace object during event # # Same as TracePoint#binding: # trace.binding.eval('self') # def `self`: () -> Binding end
Close