Class: SC::Rack::Docs

Inherits:
Object
  • Object
show all
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

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