Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/sujqvwi/AnonR/anonr.TX.../opt/alt/ruby27/share/ruby/irb
File: help.rb
# frozen_string_literal: false
[0] Fix | Delete
#
[1] Fix | Delete
# irb/help.rb - print usage module
[2] Fix | Delete
# $Release Version: 0.9.6$
[3] Fix | Delete
# $Revision$
[4] Fix | Delete
# by Keiju ISHITSUKA(keiju@ishitsuka.com)
[5] Fix | Delete
#
[6] Fix | Delete
# --
[7] Fix | Delete
#
[8] Fix | Delete
#
[9] Fix | Delete
#
[10] Fix | Delete
[11] Fix | Delete
require_relative 'magic-file'
[12] Fix | Delete
[13] Fix | Delete
module IRB
[14] Fix | Delete
# Outputs the irb help message, see IRB@Command+line+options.
[15] Fix | Delete
def IRB.print_usage
[16] Fix | Delete
lc = IRB.conf[:LC_MESSAGES]
[17] Fix | Delete
path = lc.find("irb/help-message")
[18] Fix | Delete
space_line = false
[19] Fix | Delete
IRB::MagicFile.open(path){|f|
[20] Fix | Delete
f.each_line do |l|
[21] Fix | Delete
if /^\s*$/ =~ l
[22] Fix | Delete
lc.puts l unless space_line
[23] Fix | Delete
space_line = true
[24] Fix | Delete
next
[25] Fix | Delete
end
[26] Fix | Delete
space_line = false
[27] Fix | Delete
[28] Fix | Delete
l.sub!(/#.*$/, "")
[29] Fix | Delete
next if /^\s*$/ =~ l
[30] Fix | Delete
lc.puts l
[31] Fix | Delete
end
[32] Fix | Delete
}
[33] Fix | Delete
end
[34] Fix | Delete
end
[35] Fix | Delete
[36] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function