/usr/lib/ruby/vendor_ruby/yajl/bzip2/stream_writer.rb is in ruby-yajl 1.2.0-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 | module Yajl
module Bzip2
# A wrapper around the Bzip2::Writer class for easier JSON stream encoding
class StreamWriter < ::Bzip2::Writer
# A helper method for encoding to a bzip2-compressed stream
#
# Look up Yajl::Encoder#encode for parameter documentation
def self.encode(obj, io)
Yajl::Encoder.new.encode(obj, new(io))
end
end
end
end
|