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

Inherits:
Object
  • Object
show all
Defined in:
lib/action_view/template/handlers/raw.rb

Instance Method Summary collapse

Instance Method Details

#call(template) ⇒ Object



4
5
6
7
8
# File 'lib/action_view/template/handlers/raw.rb', line 4

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

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