Class: Jasmine::JsAlert

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

Instance Method Summary collapse

Instance Method Details

#call(env) ⇒ Object



81
82
83
84
85
86
87
# File 'lib/jasmine/server.rb', line 81

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