/usr/lib/ruby/1.8/rd/rd2rmi-lib.rb is in librd-ruby1.8 0.6.22-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 | =begin
= rd2rmi-lib.rb
library to output RMI.
=end
require "rd/rdvisitor"
module RD
class RD2RMIVisitor < RDVisitor
include AutoLabel
include MethodParse
OUTPUT_SUFFIX = "rmi"
INCLUDE_SUFFIX = ["rmi"]
def visit(tree)
ret = ""
prepare_labels(tree)
index = make_method_index(tree)
index.each do |i|
i[1] = kind2str(i[1])
i[3] = @filename
i[4] = refer(i[0]+i[1]+i[2])
ret << "$method_index.push(#{i.inspect})\n"
end
ret
end
end # class RD2RMIVisitor
end # module RD
$Visitor_Class = RD::RD2RMIVisitor
|