/usr/lib/ruby/vendor_ruby/redcloth/erb_extension.rb is in ruby-redcloth 4.3.2-2.
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 | class ERB
module Util
#
# A utility method for transforming Textile in _s_ to HTML.
#
# require "erb"
# include ERB::Util
#
# puts textilize("Isn't ERB *great*?")
#
# _Generates_
#
# <p>Isn’t <span class="caps">ERB</span> <strong>great</strong>?</p>
#
def textilize( s )
if s && s.respond_to?(:to_s)
RedCloth.new( s.to_s ).to_html
end
end
alias t textilize
module_function :t
module_function :textilize
end
end
|