Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
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...
commit 2e2e59590d8920dcb1b552602a06117788b0c102 1 parent 6233ce4
@rkh authored
Showing with 4 additions and 8 deletions.
  1. +4 −8 README.rdoc
View
12 README.rdoc
@@ -796,14 +796,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
@@ -886,6 +878,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:
Please sign in to comment.
Something went wrong with that request. Please try again.