Skip to content
Browse files

Remove Sinatra::Delegator sidebar (now covered by Scopes), keep "Have…

… a look at the code for yourself" paragraph, but move it into Scopes.
  • Loading branch information...
1 parent 4842814 commit 400d2cc76a8e71588976fdc92843502aae8ad91b @rkh rkh committed Sep 24, 2010
Showing with 4 additions and 8 deletions.
  1. +4 −8 README.rdoc
View
12 README.rdoc
@@ -628,14 +628,6 @@ Sinatra::Base components with two modifications:
including the built-in server. See {Options and Configuration}[http://sinatra.github.com/configuration.html]
for details on available options and their behavior.
-SIDEBAR: Sinatra's top-level DSL is implemented using a simple delegation
-system. The +Sinatra::Application+ class -- a special subclass of
-Sinatra::Base -- receives all :get, :put, :post, :delete, :before,
-:error, :not_found, :configure, and :set messages sent to the
-top-level. Have a look at the code for yourself: here's the
-{Sinatra::Delegator mixin}[http://github.com/sinatra/sinatra/blob/ceac46f0bc129a6e994a06100aa854f606fe5992/lib/sinatra/base.rb#L1128]
-being {included into the main namespace}[http://github.com/sinatra/sinatra/blob/ceac46f0bc129a6e994a06100aa854f606fe5992/lib/sinatra/main.rb#L28]
-
== Scopes and Binding
The scope you are currently in determines what methods and variables are
@@ -718,6 +710,10 @@ You have the delegate scope binding inside:
* The top level binding, if you did <tt>require "sinatra"</tt>
* An object extended with the `Sinatra::Delegator` mixin
+Have a look at the code for yourself: here's the
+{Sinatra::Delegator mixin}[http://github.com/sinatra/sinatra/blob/ceac46f0bc129a6e994a06100aa854f606fe5992/lib/sinatra/base.rb#L1128]
+being {included into the main namespace}[http://github.com/sinatra/sinatra/blob/ceac46f0bc129a6e994a06100aa854f606fe5992/lib/sinatra/main.rb#L28]
+
== Command line
Sinatra applications can be run directly:

0 comments on commit 400d2cc

Please sign in to comment.
Something went wrong with that request. Please try again.