/usr/lib/ruby/vendor_ruby/packet/packet_callback.rb is in ruby-packet 0.1.15-5.
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 | # class implements a simple callback mechanism for invoking callbacks
module Packet
class Callback
attr_accessor :signature,:stored_proc
def initialize(&block)
@signature = Guid.hexdigest
@stored_proc = block
end
def invoke(*args)
@stored_proc.call(*args)
end
end
end
|