/usr/lib/ruby/vendor_ruby/nokogiri/xml/pp/character_data.rb is in ruby-nokogiri 1.6.7.2-3build1.
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 | module Nokogiri
module XML
module PP
module CharacterData
def pretty_print pp # :nodoc:
nice_name = self.class.name.split('::').last
pp.group(2, "#(#{nice_name} ", ')') do
pp.pp text
end
end
def inspect # :nodoc:
"#<#{self.class.name}:#{sprintf("0x%x",object_id)} #{text.inspect}>"
end
end
end
end
end
|