lib/plezi/base/dsl.rb in plezi-0.7.1 vs lib/plezi/base/dsl.rb in plezi-0.7.2
- old
+ new
@@ -78,11 +78,11 @@
PL = Plezi
# creates a server object and waits for routes to be set.
#
# port:: the port to listen to. the first port defaults to 3000 and increments by 1 with every `listen` call. it's possible to set the first port number by running the app with the -p paramater.
-# params:: a Hash of serever paramaters, as listed in the Plezi#add_service documentation.
+# params:: a Hash of serever parameters, as listed in the Plezi#add_service documentation.
#
# The different keys in the params hash control the server's behaviour, as follows:
#
# host:: the host name. defaults to any host not explicitly defined (a catch-all).
# alias:: a String or an Array of Strings which represent alternative host names (i.e. `alias: ["admin.google.com", "admin.gmail.com"]`).
@@ -112,11 +112,11 @@
# adds a route to the last server object
#
# path:: the path for the route
# controller:: The controller class which will accept the route.
#
-# `path` paramaters has a few options:
+# `path` parameters has a few options:
#
# * `path` can be a Regexp object, forcing the all the logic into controller (typically using the before method).
#
# * simple String paths are assumed to be basic RESTful paths:
#
@@ -138,10 +138,10 @@
#
# route "(:math){[\\d\\+\\-\\*\\^\\%\\.\\/]}"
#
# magic routes make for difficult debugging - the smarter the routes, the more difficult the debugging.
# use with care and avoid complex routes when possible. RESTful routes are recommended when possible.
-# json serving apps are advised to use required paramaters, empty sections indicating missing required paramaters (i.e. /path///foo/bar///).
+# json serving apps are advised to use required parameters, empty sections indicating missing required parameters (i.e. /path///foo/bar///).
#
def route(path, controller = nil, &block)
Plezi::DSL.route(path, controller, &block)
end