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.37
Domains :
Cant Read [ /etc/named.conf ]
User : beriska1
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
opt /
alt /
ruby33 /
share /
ruby /
irb /
Delete
Unzip
Name
Size
Permission
Date
Action
cmd
[ DIR ]
drwxr-xr-x
2026-05-05 23:08
command
[ DIR ]
drwxr-xr-x
2026-05-05 23:08
debug
[ DIR ]
drwxr-xr-x
2026-05-05 23:08
ext
[ DIR ]
drwxr-xr-x
2026-05-05 23:08
helper_method
[ DIR ]
drwxr-xr-x
2026-05-05 23:08
lc
[ DIR ]
drwxr-xr-x
2026-05-05 23:08
color.rb
9.18
KB
-rw-r--r--
2026-04-07 17:22
color_printer.rb
1.29
KB
-rw-r--r--
2026-04-07 17:22
command.rb
484
B
-rw-r--r--
2026-04-07 17:22
completion.rb
13.76
KB
-rw-r--r--
2026-04-07 17:22
context.rb
19.92
KB
-rw-r--r--
2026-04-07 17:22
debug.rb
4.49
KB
-rw-r--r--
2026-04-07 17:22
default_commands.rb
7.64
KB
-rw-r--r--
2026-04-07 17:22
easter-egg.rb
3.99
KB
-rw-r--r--
2026-04-07 17:22
frame.rb
1.92
KB
-rw-r--r--
2026-04-07 17:22
help.rb
612
B
-rw-r--r--
2026-04-07 17:22
helper_method.rb
657
B
-rw-r--r--
2026-04-07 17:22
history.rb
2.72
KB
-rw-r--r--
2026-04-07 17:22
init.rb
13.6
KB
-rw-r--r--
2026-04-07 17:22
input-method.rb
13.86
KB
-rw-r--r--
2026-04-07 17:22
inspector.rb
3.91
KB
-rw-r--r--
2026-04-07 17:22
locale.rb
3.96
KB
-rw-r--r--
2026-04-07 17:22
nesting_parser.rb
8.24
KB
-rw-r--r--
2026-04-07 17:22
notifier.rb
7.18
KB
-rw-r--r--
2026-04-07 17:22
output-method.rb
2.24
KB
-rw-r--r--
2026-04-07 17:22
pager.rb
2.58
KB
-rw-r--r--
2026-04-07 17:22
ruby-lex.rb
15.82
KB
-rw-r--r--
2026-04-07 17:22
ruby_logo.aa
4.7
KB
-rw-r--r--
2026-04-07 17:22
source_finder.rb
4.25
KB
-rw-r--r--
2026-04-07 17:22
statement.rb
1.4
KB
-rw-r--r--
2026-04-07 17:22
version.rb
239
B
-rw-r--r--
2026-04-07 17:22
workspace.rb
5.96
KB
-rw-r--r--
2026-04-07 17:22
ws-for-case-2.rb
160
B
-rw-r--r--
2026-04-07 17:22
xmp.rb
3.99
KB
-rw-r--r--
2026-04-07 17:22
Save
Rename
# frozen_string_literal: true # # irb/inspector.rb - inspect methods # by Keiju ISHITSUKA(keiju@ruby-lang.org) # module IRB # :nodoc: # Convenience method to create a new Inspector, using the given +inspect+ # proc, and optional +init+ proc and passes them to Inspector.new # # irb(main):001:0> ins = IRB::Inspector(proc{ |v| "omg! #{v}" }) # irb(main):001:0> IRB.CurrentContext.inspect_mode = ins # => omg! #<IRB::Inspector:0x007f46f7ba7d28> # irb(main):001:0> "what?" #=> omg! what? # def IRB::Inspector(inspect, init = nil) Inspector.new(inspect, init) end # An irb inspector # # In order to create your own custom inspector there are two things you # should be aware of: # # Inspector uses #inspect_value, or +inspect_proc+, for output of return values. # # This also allows for an optional #init+, or +init_proc+, which is called # when the inspector is activated. # # Knowing this, you can create a rudimentary inspector as follows: # # irb(main):001:0> ins = IRB::Inspector.new(proc{ |v| "omg! #{v}" }) # irb(main):001:0> IRB.CurrentContext.inspect_mode = ins # => omg! #<IRB::Inspector:0x007f46f7ba7d28> # irb(main):001:0> "what?" #=> omg! what? # class Inspector KERNEL_INSPECT = Object.instance_method(:inspect) # Default inspectors available to irb, this includes: # # +:pp+:: Using Kernel#pretty_inspect # +:yaml+:: Using YAML.dump # +:marshal+:: Using Marshal.dump INSPECTORS = {} # Determines the inspector to use where +inspector+ is one of the keys passed # during inspector definition. def self.keys_with_inspector(inspector) INSPECTORS.select{|k, v| v == inspector}.collect{|k, v| k} end # Example # # Inspector.def_inspector(key, init_p=nil){|v| v.inspect} # Inspector.def_inspector([key1,..], init_p=nil){|v| v.inspect} # Inspector.def_inspector(key, inspector) # Inspector.def_inspector([key1,...], inspector) def self.def_inspector(key, arg=nil, &block) if block_given? inspector = IRB::Inspector(block, arg) else inspector = arg end case key when Array for k in key def_inspector(k, inspector) end when Symbol INSPECTORS[key] = inspector INSPECTORS[key.to_s] = inspector when String INSPECTORS[key] = inspector INSPECTORS[key.intern] = inspector else INSPECTORS[key] = inspector end end # Creates a new inspector object, using the given +inspect_proc+ when # output return values in irb. def initialize(inspect_proc, init_proc = nil) @init = init_proc @inspect = inspect_proc end # Proc to call when the inspector is activated, good for requiring # dependent libraries. def init @init.call if @init end # Proc to call when the input is evaluated and output in irb. def inspect_value(v) @inspect.call(v) rescue => e puts "An error occurred when inspecting the object: #{e.inspect}" begin puts "Result of Kernel#inspect: #{KERNEL_INSPECT.bind_call(v)}" '' rescue => e puts "An error occurred when running Kernel#inspect: #{e.inspect}" puts e.backtrace.join("\n") '' end end end Inspector.def_inspector([false, :to_s, :raw]){|v| v.to_s} Inspector.def_inspector([:p, :inspect]){|v| Color.colorize_code(v.inspect, colorable: Color.colorable? && Color.inspect_colorable?(v)) } Inspector.def_inspector([true, :pp, :pretty_inspect], proc{require_relative "color_printer"}){|v| IRB::ColorPrinter.pp(v, +'').chomp } Inspector.def_inspector([:yaml, :YAML], proc{require "yaml"}){|v| begin YAML.dump(v) rescue puts "(can't dump yaml. use inspect)" v.inspect end } Inspector.def_inspector([:marshal, :Marshal, :MARSHAL, Marshal]){|v| Marshal.dump(v) } end