Class: Matryoshka::Document::Unknown
- Inherits:
-
Object
- Object
- Matryoshka::Document::Unknown
- Defined in:
- lib/matryoshka/document/unknown.rb
Class Method Summary collapse
- .accepts ⇒ Object
-
.extentions ⇒ Object
These never match.
Instance Method Summary collapse
- #call(env) ⇒ Object
-
#initialize(*args) ⇒ Unknown
constructor
A new instance of Unknown.
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
.accepts ⇒ Object
7 |
# File 'lib/matryoshka/document/unknown.rb', line 7 def self.accepts ; [] ;end |
.extentions ⇒ Object
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 |