mirror of
https://github.com/sinatra/sinatra
synced 2023-03-27 23:18:01 -04:00
Remove Sinatra::Delegator sidebar (now covered by Scopes), keep "Have a look at the code for yourself" paragraph, but move it into Scopes.
This commit is contained in:
parent
6233ce4390
commit
2e2e59590d
1 changed files with 4 additions and 8 deletions
12
README.rdoc
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:
|
||||
|
|
Loading…
Reference in a new issue