Class: SC::Rack::Docs
- Inherits:
-
Object
- Object
- SC::Rack::Docs
- Defined in:
- lib/sproutcore/rack/docs.rb
Overview
Rewrites relevant requests to load the SproutCore docs tools for a given project.
Instance Method Summary collapse
- #call(env) ⇒ Object
-
#initialize(project) ⇒ Docs
constructor
A new instance of Docs.
Constructor Details
#initialize(project) ⇒ Docs
Returns a new instance of Docs.
15 16 17 |
# File 'lib/sproutcore/rack/docs.rb', line 15 def initialize(project) @project = project end |
Instance Method Details
#call(env) ⇒ Object
19 20 21 |
# File 'lib/sproutcore/rack/docs.rb', line 19 def call(env) return [404, {}, "not found"] end |