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 /
ruby34 /
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 16:51
color_printer.rb
1.29
KB
-rw-r--r--
2026-04-07 16:51
command.rb
484
B
-rw-r--r--
2026-04-07 16:51
completion.rb
14.6
KB
-rw-r--r--
2026-04-07 16:51
context.rb
21.61
KB
-rw-r--r--
2026-04-07 16:51
debug.rb
4.47
KB
-rw-r--r--
2026-04-07 16:51
default_commands.rb
7.98
KB
-rw-r--r--
2026-04-07 16:51
easter-egg.rb
4.19
KB
-rw-r--r--
2026-04-07 16:51
frame.rb
1.92
KB
-rw-r--r--
2026-04-07 16:51
help.rb
612
B
-rw-r--r--
2026-04-07 16:51
helper_method.rb
657
B
-rw-r--r--
2026-04-07 16:51
history.rb
3.15
KB
-rw-r--r--
2026-04-07 16:51
init.rb
14.64
KB
-rw-r--r--
2026-04-07 16:51
input-method.rb
14.04
KB
-rw-r--r--
2026-04-07 16:51
inspector.rb
3.99
KB
-rw-r--r--
2026-04-07 16:51
locale.rb
3.96
KB
-rw-r--r--
2026-04-07 16:51
nesting_parser.rb
8.69
KB
-rw-r--r--
2026-04-07 16:51
notifier.rb
7.18
KB
-rw-r--r--
2026-04-07 16:51
output-method.rb
2.24
KB
-rw-r--r--
2026-04-07 16:51
pager.rb
2.82
KB
-rw-r--r--
2026-04-07 16:51
ruby-lex.rb
15.94
KB
-rw-r--r--
2026-04-07 16:51
ruby_logo.aa
9.39
KB
-rw-r--r--
2026-04-07 16:51
source_finder.rb
4.22
KB
-rw-r--r--
2026-04-07 16:51
statement.rb
1.4
KB
-rw-r--r--
2026-04-07 16:51
version.rb
239
B
-rw-r--r--
2026-04-07 16:51
workspace.rb
5.37
KB
-rw-r--r--
2026-04-07 16:51
ws-for-case-2.rb
160
B
-rw-r--r--
2026-04-07 16:51
xmp.rb
3.99
KB
-rw-r--r--
2026-04-07 16:51
Save
Rename
# frozen_string_literal: true # # xmp.rb - irb version of gotoken xmp # by Keiju ISHITSUKA(Nippon Rational Inc.) # require_relative "../irb" require_relative "frame" # An example printer for irb. # # It's much like the standard library PrettyPrint, that shows the value of each # expression as it runs. # # In order to use this library, you must first require it: # # require 'irb/xmp' # # Now, you can take advantage of the Object#xmp convenience method. # # xmp <<END # foo = "bar" # baz = 42 # END # #=> foo = "bar" # #==>"bar" # #=> baz = 42 # #==>42 # # You can also create an XMP object, with an optional binding to print # expressions in the given binding: # # ctx = binding # x = XMP.new ctx # x.puts # #=> today = "a good day" # #==>"a good day" # ctx.eval 'today # is what?' # #=> "a good day" class XMP # Creates a new XMP object. # # The top-level binding or, optional +bind+ parameter will be used when # creating the workspace. See WorkSpace.new for more information. # # This uses the +:XMP+ prompt mode. # See {Custom Prompts}[rdoc-ref:IRB@Custom+Prompts] for more information. def initialize(bind = nil) IRB.init_config(nil) IRB.conf[:PROMPT_MODE] = :XMP bind = IRB::Frame.top(1) unless bind ws = IRB::WorkSpace.new(bind) @io = StringInputMethod.new @irb = IRB::Irb.new(ws, @io) @irb.context.ignore_sigint = false IRB.conf[:MAIN_CONTEXT] = @irb.context end # Evaluates the given +exps+, for example: # # require 'irb/xmp' # x = XMP.new # # x.puts '{:a => 1, :b => 2, :c => 3}' # #=> {:a => 1, :b => 2, :c => 3} # # ==>{:a=>1, :b=>2, :c=>3} # x.puts 'foo = "bar"' # # => foo = "bar" # # ==>"bar" def puts(exps) @io.puts exps if @irb.context.ignore_sigint begin trap_proc_b = trap("SIGINT"){@irb.signal_handle} catch(:IRB_EXIT) do @irb.eval_input end ensure trap("SIGINT", trap_proc_b) end else catch(:IRB_EXIT) do @irb.eval_input end end end # A custom InputMethod class used by XMP for evaluating string io. class StringInputMethod < IRB::InputMethod # Creates a new StringInputMethod object def initialize super @exps = [] end # Whether there are any expressions left in this printer. def eof? @exps.empty? end # Reads the next expression from this printer. # # See IO#gets for more information. def gets while l = @exps.shift next if /^\s+$/ =~ l l.concat "\n" print @prompt, l break end l end # Concatenates all expressions in this printer, separated by newlines. # # An Encoding::CompatibilityError is raised of the given +exps+'s encoding # doesn't match the previous expression evaluated. def puts(exps) if @encoding and exps.encoding != @encoding enc = Encoding.compatible?(@exps.join("\n"), exps) if enc.nil? raise Encoding::CompatibilityError, "Encoding in which the passed expression is encoded is not compatible to the preceding's one" else @encoding = enc end else @encoding = exps.encoding end @exps.concat exps.split(/\n/) end # Returns the encoding of last expression printed by #puts. attr_reader :encoding end end # A convenience method that's only available when the you require the IRB::XMP standard library. # # Creates a new XMP object, using the given expressions as the +exps+ # parameter, and optional binding as +bind+ or uses the top-level binding. Then # evaluates the given expressions using the +:XMP+ prompt mode. # # For example: # # require 'irb/xmp' # ctx = binding # xmp 'foo = "bar"', ctx # #=> foo = "bar" # #==>"bar" # ctx.eval 'foo' # #=> "bar" # # See XMP.new for more information. def xmp(exps, bind = nil) bind = IRB::Frame.top(1) unless bind xmp = XMP.new(bind) xmp.puts exps xmp end