/usr/lib/ruby/1.8/rd/rbl-suite.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 33 34 35 36 37 | require "rd/rbl-file"
module RD
class RBLSuite
attr_reader :rbl_files
def initialize(search_paths)
@search_paths = search_paths
@rbl_files = []
end
def refer(label, filename)
rbl = get_rbl_file(filename)
[rbl.filename, rbl.refer(label)]
end
def get_rbl_file(filename)
rbl = @rbl_files.find{|i| i.filename == RBLFile.basename(filename)}
if rbl
rbl
else
add_rbl_file(filename)
end
end
def add_rbl_file(filename)
rbl = RBLFile.new(filename)
begin
rbl.load_rbl_file(@search_paths)
rescue RuntimeError
ensure
@rbl_files.push(rbl)
end
rbl
end
end
end
|