Class: Jasmine::JsAlert

Inherits:
Object
  • Object
show all
Defined in:
lib/jasmine/server.rb

Instance Method Summary collapse

Instance Method Details

#call(env) ⇒ Object



50
51
52
53
54
55
56
# File 'lib/jasmine/server.rb', line 50

def call(env)
  [
    200,
    { 'Content-Type' => 'application/javascript' },
    "document.write('<p>Couldn\\'t load #{env["PATH_INFO"]}!</p>');"
  ]
end