1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/actionview/lib/action_view/template/handlers/raw.rb

11 lines
195 B
Ruby

module ActionView
module Template::Handlers
class Raw
def call(template)
escaped = template.source.gsub(/:/, '\:')
'%q:' + escaped + ':;'
end
end
end
end