Class: Matryoshka::Document::Unknown

Inherits:
Object
  • Object
show all
Defined in:
lib/matryoshka/document/unknown.rb

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(*args) ⇒ Unknown

Returns a new instance of Unknown.



2
3
# File 'lib/matryoshka/document/unknown.rb', line 2

def initialize(*args)
end

Class Method Details

.acceptsObject



7
# File 'lib/matryoshka/document/unknown.rb', line 7

def self.accepts    ; [] ;end

.extentionsObject

These never match.



6
# File 'lib/matryoshka/document/unknown.rb', line 6

def self.extentions ; [] ; end

Instance Method Details

#call(env) ⇒ Object



9
10
11
12
# File 'lib/matryoshka/document/unknown.rb', line 9

def call(env)
  content = "Can't handle that kind of request."
  [501,  {"Content-Type" => "text/html", 'Content-Length' => content.length.to_s}, content]
end