vendor/bundle/ruby/3.0.0/gems/brakeman-5.2.2/bundle/ruby/2.7.0/gems/ruby2ruby-2.4.4/lib/ruby2ruby.rb
def util_dthing(type, exp)
    _, str, *rest = exp

    # first item in sexp is a string literal
    str = dthing_escape(type, str)

    rest = rest.map { |pt|
      case pt.sexp_type
      when :str then
        dthing_escape(type, pt.last)
      when :evstr then
        '#{%s}' % [process(pt)]
      else
        raise "unknown type: #{pt.inspect}"
      end
    }

    [str, rest].join
  end
##
# Utility method to generate something interpolated.
Utility method to generate something interpolated.
Utility method to generate something interpolated .
def util_dthing(type, exp)
    _, str, *rest = exp
    str = dthing_escape(type, str)
    rest = rest.map { |pt|
      case pt.sexp_type
      when :str then
        dthing_escape(type, pt.last)
      when :evstr then
        '#{%s}' % [process(pt)]
      else
        raise "unknown type: #{pt.inspect}"
      end
    }
    [str, rest].join
  end
def util_dthing ( type , exp ) _ , str , * rest = exp str = dthing_escape ( type , str ) rest = rest . map { | pt | case pt . sexp_type when :str then dthing_escape ( type , pt . last ) when :evstr then '#{%s}' % [ process ( pt ) ] else raise "unknown type: #{pt.inspect}" end } [ str , rest ] . join end
Utility method to generate something interpolated.
Utility method to generate something interpolated .
# first item in sexp is a string literal
type
exp