Linux server1.dn-server.com 4.18.0-553.89.1.lve.el8.x86_64 #1 SMP Wed Dec 10 13:58:50 UTC 2025 x86_64
LiteSpeed
Server IP : 195.201.204.189 & Your IP : 216.73.216.198
Domains :
Cant Read [ /etc/named.conf ]
User : beriska1
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
opt /
alt /
ruby19 /
lib64 /
ruby /
1.9.1 /
Delete
Unzip
Name
Size
Permission
Date
Action
bigdecimal
[ DIR ]
drwxr-xr-x
2026-05-01 04:24
cgi
[ DIR ]
drwxr-xr-x
2026-04-30 23:44
date
[ DIR ]
drwxr-xr-x
2026-04-30 23:44
digest
[ DIR ]
drwxr-xr-x
2026-04-30 23:44
dl
[ DIR ]
drwxr-xr-x
2026-04-30 23:44
drb
[ DIR ]
drwxr-xr-x
2026-04-30 23:44
fiddle
[ DIR ]
drwxr-xr-x
2026-04-30 23:44
io
[ DIR ]
drwxr-xr-x
2026-05-01 04:24
irb
[ DIR ]
drwxr-xr-x
2026-04-30 23:44
json
[ DIR ]
drwxr-xr-x
2026-04-30 23:44
matrix
[ DIR ]
drwxr-xr-x
2026-04-30 23:44
minitest
[ DIR ]
drwxr-xr-x
2026-05-01 04:24
net
[ DIR ]
drwxr-xr-x
2026-04-30 23:44
openssl
[ DIR ]
drwxr-xr-x
2026-04-30 23:44
optparse
[ DIR ]
drwxr-xr-x
2026-04-30 23:44
psych
[ DIR ]
drwxr-xr-x
2026-04-30 23:44
racc
[ DIR ]
drwxr-xr-x
2026-04-30 23:44
rake
[ DIR ]
drwxr-xr-x
2026-04-30 23:44
rbconfig
[ DIR ]
drwxr-xr-x
2026-04-30 23:44
rdoc
[ DIR ]
drwxr-xr-x
2026-04-30 23:44
rexml
[ DIR ]
drwxr-xr-x
2026-04-30 23:44
rinda
[ DIR ]
drwxr-xr-x
2026-04-30 23:44
ripper
[ DIR ]
drwxr-xr-x
2026-04-30 23:44
rss
[ DIR ]
drwxr-xr-x
2026-04-30 23:44
rubygems
[ DIR ]
drwxr-xr-x
2026-04-30 23:44
shell
[ DIR ]
drwxr-xr-x
2026-04-30 23:44
syck
[ DIR ]
drwxr-xr-x
2026-04-30 23:44
test
[ DIR ]
drwxr-xr-x
2026-04-30 23:44
uri
[ DIR ]
drwxr-xr-x
2026-04-30 23:44
webrick
[ DIR ]
drwxr-xr-x
2026-04-30 23:44
x86_64-linux
[ DIR ]
drwxr-xr-x
2026-05-01 04:24
xmlrpc
[ DIR ]
drwxr-xr-x
2026-04-30 23:44
yaml
[ DIR ]
drwxr-xr-x
2026-04-30 23:44
English.rb
5.59
KB
-rw-r--r--
2009-10-02 14:15
abbrev.rb
2.57
KB
-rw-r--r--
2011-05-19 01:49
base64.rb
2.63
KB
-rw-r--r--
2009-10-02 14:15
benchmark.rb
18
KB
-rw-r--r--
2011-06-28 10:39
cgi.rb
9.3
KB
-rw-r--r--
2011-05-17 01:51
cmath.rb
7.22
KB
-rw-r--r--
2011-07-30 19:23
complex.rb
380
B
-rw-r--r--
2009-08-16 20:04
csv.rb
82.66
KB
-rw-r--r--
2011-07-22 02:10
date.rb
946
B
-rw-r--r--
2011-05-21 16:55
debug.rb
23.23
KB
-rw-r--r--
2011-06-28 16:15
delegate.rb
9.74
KB
-rw-r--r--
2011-07-28 00:26
digest.rb
2.24
KB
-rw-r--r--
2011-05-17 01:22
dl.rb
176
B
-rw-r--r--
2010-06-12 19:58
drb.rb
19
B
-rw-r--r--
2009-10-02 14:15
e2mmap.rb
3.8
KB
-rw-r--r--
2011-05-19 04:37
erb.rb
25.72
KB
-rw-r--r--
2012-12-13 08:54
expect.rb
1.33
KB
-rw-r--r--
2011-08-27 04:24
fiddle.rb
928
B
-rw-r--r--
2011-08-16 05:21
fileutils.rb
45.32
KB
-rw-r--r--
2012-02-25 11:41
find.rb
2.03
KB
-rw-r--r--
2011-05-19 01:49
forwardable.rb
7.64
KB
-rw-r--r--
2011-05-22 06:44
getoptlong.rb
15.38
KB
-rw-r--r--
2011-05-19 04:37
gserver.rb
8.83
KB
-rw-r--r--
2013-10-31 18:10
ipaddr.rb
24.92
KB
-rw-r--r--
2013-04-11 07:01
irb.rb
8.34
KB
-rw-r--r--
2011-05-19 04:37
json.rb
1.74
KB
-rw-r--r--
2011-08-30 06:55
kconv.rb
5.74
KB
-rw-r--r--
2010-12-07 15:17
logger.rb
20.85
KB
-rw-r--r--
2011-05-19 04:37
mathn.rb
6.52
KB
-rw-r--r--
2011-08-27 04:24
matrix.rb
47.65
KB
-rw-r--r--
2011-07-09 23:41
mkmf.rb
68.9
KB
-rw-r--r--
2014-02-06 08:50
monitor.rb
6.94
KB
-rw-r--r--
2011-06-18 03:03
mutex_m.rb
1.61
KB
-rw-r--r--
2011-05-19 04:37
observer.rb
5.69
KB
-rw-r--r--
2011-05-17 02:23
open-uri.rb
25.84
KB
-rw-r--r--
2014-02-24 07:13
open3.rb
20.64
KB
-rw-r--r--
2011-05-19 01:49
openssl.rb
547
B
-rw-r--r--
2011-07-25 11:08
optparse.rb
51.13
KB
-rw-r--r--
2014-02-14 08:22
ostruct.rb
6.49
KB
-rw-r--r--
2012-02-24 18:19
pathname.rb
14.21
KB
-rw-r--r--
2011-08-27 04:24
pp.rb
13.31
KB
-rw-r--r--
2010-08-01 18:39
prettyprint.rb
9.63
KB
-rw-r--r--
2011-08-02 19:55
prime.rb
13.98
KB
-rw-r--r--
2011-06-01 04:51
profile.rb
205
B
-rw-r--r--
2009-10-02 14:15
profiler.rb
1.59
KB
-rw-r--r--
2009-10-02 14:15
pstore.rb
15.81
KB
-rw-r--r--
2011-10-11 02:44
psych.rb
9.82
KB
-rw-r--r--
2012-08-08 01:20
rake.rb
2.02
KB
-rw-r--r--
2011-06-29 07:39
rational.rb
308
B
-rw-r--r--
2009-09-24 04:12
rdoc.rb
4.29
KB
-rw-r--r--
2013-02-06 11:30
resolv-replace.rb
1.74
KB
-rw-r--r--
2010-10-30 01:32
resolv.rb
59.91
KB
-rw-r--r--
2014-02-14 10:26
ripper.rb
91
B
-rw-r--r--
2009-10-02 14:15
rss.rb
2.84
KB
-rw-r--r--
2011-05-11 14:52
rubygems.rb
34.13
KB
-rw-r--r--
2013-12-22 08:08
scanf.rb
23.53
KB
-rw-r--r--
2011-05-20 16:52
securerandom.rb
8.46
KB
-rw-r--r--
2012-05-07 15:55
set.rb
29.91
KB
-rw-r--r--
2012-02-10 11:58
shell.rb
5.9
KB
-rw-r--r--
2011-05-19 04:37
shellwords.rb
3.88
KB
-rw-r--r--
2012-02-12 11:21
singleton.rb
4.02
KB
-rw-r--r--
2011-05-18 18:39
socket.rb
23.22
KB
-rw-r--r--
2014-01-30 15:34
syck.rb
13.91
KB
-rw-r--r--
2010-07-19 09:24
sync.rb
6.87
KB
-rw-r--r--
2011-06-29 07:39
tempfile.rb
10.42
KB
-rw-r--r--
2013-10-31 18:14
thread.rb
6.59
KB
-rw-r--r--
2014-02-14 07:18
thwait.rb
3.38
KB
-rw-r--r--
2011-06-29 07:39
time.rb
17.03
KB
-rw-r--r--
2013-10-31 17:36
timeout.rb
3.26
KB
-rw-r--r--
2013-04-02 08:39
tmpdir.rb
3.72
KB
-rw-r--r--
2011-05-19 01:49
tracer.rb
6.63
KB
-rw-r--r--
2011-06-29 17:49
tsort.rb
6.79
KB
-rw-r--r--
2009-03-06 07:53
ubygems.rb
268
B
-rw-r--r--
2009-10-02 14:15
un.rb
8.32
KB
-rw-r--r--
2011-05-19 04:37
uri.rb
3.07
KB
-rw-r--r--
2011-05-14 00:33
weakref.rb
2.29
KB
-rw-r--r--
2011-08-27 04:24
webrick.rb
6.8
KB
-rw-r--r--
2011-05-11 04:07
yaml.rb
2.58
KB
-rw-r--r--
2013-05-29 16:30
Save
Rename
# # forwardable.rb - # $Release Version: 1.1$ # $Revision: 31685 $ # by Keiju ISHITSUKA(keiju@ishitsuka.com) # original definition by delegator.rb # Revised by Daniel J. Berger with suggestions from Florian Gross. # # Documentation by James Edward Gray II and Gavin Sinclair # # == Introduction # # This library allows you delegate method calls to an object, on a method by # method basis. # # == Notes # # Be advised, RDoc will not detect delegated methods. # # <b>forwardable.rb provides single-method delegation via the # def_delegator() and def_delegators() methods. For full-class # delegation via DelegateClass(), see delegate.rb.</b> # # == Examples # # === Forwardable # # Forwardable makes building a new class based on existing work, with a proper # interface, almost trivial. We want to rely on what has come before obviously, # but with delegation we can take just the methods we need and even rename them # as appropriate. In many cases this is preferable to inheritance, which gives # us the entire old interface, even if much of it isn't needed. # # class Queue # extend Forwardable # # def initialize # @q = [ ] # prepare delegate object # end # # # setup preferred interface, enq() and deq()... # def_delegator :@q, :push, :enq # def_delegator :@q, :shift, :deq # # # support some general Array methods that fit Queues well # def_delegators :@q, :clear, :first, :push, :shift, :size # end # # q = Queue.new # q.enq 1, 2, 3, 4, 5 # q.push 6 # # q.shift # => 1 # while q.size > 0 # puts q.deq # end # # q.enq "Ruby", "Perl", "Python" # puts q.first # q.clear # puts q.first # # <i>Prints:</i> # # 2 # 3 # 4 # 5 # 6 # Ruby # nil # # SingleForwardable can be used to setup delegation at the object level as well. # # printer = String.new # printer.extend SingleForwardable # prepare object for delegation # printer.def_delegator "STDOUT", "puts" # add delegation for STDOUT.puts() # printer.puts "Howdy!" # # Also, SingleForwardable can be use to Class or Module. # # module Facade # extend SingleForwardable # def_delegator :Implementation, :service # # class Implementation # def service... # end # end # # If you want to use both Forwardable and SingleForwardable, you can # use methods def_instance_delegator and def_single_delegator, etc. # # If the object isn't a Module and Class, You can too extend # Forwardable module. # printer = String.new # printer.extend Forwardable # prepare object for delegation # printer.def_delegator "STDOUT", "puts" # add delegation for STDOUT.puts() # printer.puts "Howdy!" # # <i>Prints:</i> # # Howdy! # # The Forwardable module provides delegation of specified # methods to a designated object, using the methods #def_delegator # and #def_delegators. # # For example, say you have a class RecordCollection which # contains an array <tt>@records</tt>. You could provide the lookup method # #record_number(), which simply calls #[] on the <tt>@records</tt> # array, like this: # # class RecordCollection # extend Forwardable # def_delegator :@records, :[], :record_number # end # # Further, if you wish to provide the methods #size, #<<, and #map, # all of which delegate to @records, this is how you can do it: # # class RecordCollection # # extend Forwardable, but we did that above # def_delegators :@records, :size, :<<, :map # end # f = Foo.new # f.printf ... # f.gets # f.content_at(1) # # Also see the example at forwardable.rb. module Forwardable FORWARDABLE_VERSION = "1.1.0" @debug = nil class << self attr_accessor :debug end # Takes a hash as its argument. The key is a symbol or an array of # symbols. These symbols correspond to method names. The value is # the accessor to which the methods will be delegated. # # :call-seq: # delegate method => accessor # delegate [method, method, ...] => accessor # def instance_delegate(hash) hash.each{ |methods, accessor| methods = [methods] unless methods.respond_to?(:each) methods.each{ |method| def_instance_delegator(accessor, method) } } end # # Shortcut for defining multiple delegator methods, but with no # provision for using a different name. The following two code # samples have the same effect: # # def_delegators :@records, :size, :<<, :map # # def_delegator :@records, :size # def_delegator :@records, :<< # def_delegator :@records, :map # def def_instance_delegators(accessor, *methods) methods.delete("__send__") methods.delete("__id__") for method in methods def_instance_delegator(accessor, method) end end # Define +method+ as delegator instance method with an optional # alias name +ali+. Method calls to +ali+ will be delegated to # +accessor.method+. # # class MyQueue # extend Forwardable # attr_reader :queue # def initialize # @queue = [] # end # # def_delegator :@queue, :push, :mypush # end # # q = MyQueue.new # q.mypush 42 # q.queue #=> [42] # q.push 23 #=> NoMethodError # def def_instance_delegator(accessor, method, ali = method) line_no = __LINE__; str = %{ def #{ali}(*args, &block) begin #{accessor}.__send__(:#{method}, *args, &block) rescue Exception $@.delete_if{|s| %r"#{Regexp.quote(__FILE__)}"o =~ s} unless Forwardable::debug ::Kernel::raise end end } # If it's not a class or module, it's an instance begin module_eval(str, __FILE__, line_no) rescue instance_eval(str, __FILE__, line_no) end end alias delegate instance_delegate alias def_delegators def_instance_delegators alias def_delegator def_instance_delegator end # # Usage of The SingleForwardable is like Fowadable module. # module SingleForwardable # Takes a hash as its argument. The key is a symbol or an array of # symbols. These symbols correspond to method names. The value is # the accessor to which the methods will be delegated. # # :call-seq: # delegate method => accessor # delegate [method, method, ...] => accessor # def single_delegate(hash) hash.each{ |methods, accessor| methods = [methods] unless methods.respond_to?(:each) methods.each{ |method| def_single_delegator(accessor, method) } } end # # Shortcut for defining multiple delegator methods, but with no # provision for using a different name. The following two code # samples have the same effect: # # def_delegators :@records, :size, :<<, :map # # def_delegator :@records, :size # def_delegator :@records, :<< # def_delegator :@records, :map # def def_single_delegators(accessor, *methods) methods.delete("__send__") methods.delete("__id__") for method in methods def_single_delegator(accessor, method) end end # # Defines a method _method_ which delegates to _obj_ (i.e. it calls # the method of the same name in _obj_). If _new_name_ is # provided, it is used as the name for the delegate method. # def def_single_delegator(accessor, method, ali = method) str = %{ def #{ali}(*args, &block) begin #{accessor}.__send__(:#{method}, *args, &block) rescue Exception $@.delete_if{|s| %r"#{Regexp.quote(__FILE__)}"o =~ s} unless Forwardable::debug ::Kernel::raise end end } instance_eval(str, __FILE__, __LINE__) end alias delegate single_delegate alias def_delegators def_single_delegators alias def_delegator def_single_delegator end