123456789_123456789_123456789_123456789_123456789_

Class: ActionView::Template::Handlers::Raw

Relationships & Source Files
Inherits: Object
Defined in: actionview/lib/action_view/template/handlers/raw.rb

Instance Method Summary

Instance Method Details

#call(template)

[ GitHub ]

  
# File 'actionview/lib/action_view/template/handlers/raw.rb', line 4

def call(template)
  escaped = template.source.gsub(/:/, '\:')

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