/usr/lib/ruby/vendor_ruby/treetop/compiler/node_classes/atomic_expression.rb is in ruby-treetop 1.4.10-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 | module Treetop
module Compiler
class AtomicExpression < ParsingExpression
def inline_modules
[]
end
def single_quote(string)
# Double any backslashes, then backslash any single-quotes:
"'#{string.gsub(/\\/) { '\\\\' }.gsub(/'/) { "\\'"}}'"
end
end
end
end
|