aboutsummaryrefslogtreecommitdiffstats
path: root/actionview/lib/action_view/template/handlers/raw.rb
blob: b08fb0870fa227edc73aacaf13f869738aba9239 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
module ActionView
  module Template::Handlers
    class Raw
      def call(template)
        escaped = template.source.gsub(':'.freeze, '\:'.freeze)

        '%q:' + escaped + ':;'
      end
    end
  end
end