consistent colon in Readme
This commit is contained in:
parent
0db16d172f
commit
9bd71b89df
|
@ -848,7 +848,7 @@ support streaming, the body will be sent all at once after the block passed to
|
|||
If the optional parameter is set to +keep_open+, it will not call +close+ on
|
||||
the stream object, allowing you to close it at any later point in the
|
||||
execution flow. This only works on evented servers, like Thin and Rainbows.
|
||||
Other servers will still close the stream.
|
||||
Other servers will still close the stream:
|
||||
|
||||
set :server, :thin
|
||||
connections = []
|
||||
|
@ -1123,7 +1123,7 @@ You can also pass it a file name:
|
|||
|
||||
Sinatra offers a +time_for+ helper method, which, from the given value
|
||||
generates a Time object. It is also able to convert +DateTime+, +Date+ and
|
||||
similar classes.
|
||||
similar classes:
|
||||
|
||||
get '/' do
|
||||
pass if Time.now > time_for('Dec 23, 2012')
|
||||
|
@ -1132,7 +1132,7 @@ similar classes.
|
|||
|
||||
This method is used internally by +expires+, +last_modified+ and akin. You can
|
||||
therefore easily extend the behavior of those methods by overriding +time_for+
|
||||
in your application.
|
||||
in your application:
|
||||
|
||||
helpers do
|
||||
def time_for(value)
|
||||
|
|
Loading…
Reference in New Issue