utopia 2.5.5 → 2.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.travis.yml +1 -2
- data/Gemfile +1 -0
- data/Rakefile +2 -0
- data/docs/code/Utopia.html +439 -433
- data/docs/code/Utopia/Command.html +201 -195
- data/docs/code/Utopia/Command/Environment.html +244 -244
- data/docs/code/Utopia/Command/Server.html +202 -202
- data/docs/code/Utopia/Command/Server/Create.html +192 -192
- data/docs/code/Utopia/Command/Server/Update.html +235 -235
- data/docs/code/Utopia/Command/Site.html +269 -263
- data/docs/code/Utopia/Command/Site/Create.html +192 -192
- data/docs/code/Utopia/Command/Site/Update.html +246 -246
- data/docs/code/Utopia/Command/Top.html +244 -244
- data/docs/code/Utopia/Content.html +636 -630
- data/docs/code/Utopia/Content/Document.html +1411 -1407
- data/docs/code/Utopia/Content/Document/State.html +1048 -1048
- data/docs/code/Utopia/Content/Link.html +1023 -1023
- data/docs/code/Utopia/Content/Links.html +629 -623
- data/docs/code/Utopia/Content/MarkupParser.html +702 -702
- data/docs/code/Utopia/Content/MarkupParser/ParsedTag.html +375 -375
- data/docs/code/Utopia/Content/MarkupParser/UnbalancedTagError.html +523 -523
- data/docs/code/Utopia/Content/Namespace.html +416 -416
- data/docs/code/Utopia/Content/Node.html +952 -952
- data/docs/code/Utopia/Content/Node/Context.html +790 -790
- data/docs/code/Utopia/Content/Response.html +686 -686
- data/docs/code/Utopia/Content/SymbolicHash.html +365 -365
- data/docs/code/Utopia/Content/Tags.html +134 -134
- data/docs/code/Utopia/Content/UnbalancedTagError.html +270 -270
- data/docs/code/Utopia/ContentLength.html +298 -294
- data/docs/code/Utopia/Controller.html +657 -651
- data/docs/code/Utopia/Controller/Actions.html +260 -260
- data/docs/code/Utopia/Controller/Actions/Action.html +785 -779
- data/docs/code/Utopia/Controller/Actions/ClassMethods.html +360 -360
- data/docs/code/Utopia/Controller/Base.html +989 -989
- data/docs/code/Utopia/Controller/Respond.html +264 -254
- data/docs/code/Utopia/Controller/Respond/ClassMethods.html +207 -207
- data/docs/code/Utopia/Controller/Respond/Converter.html +219 -219
- data/docs/code/Utopia/Controller/Respond/Converter/Callback.html +425 -425
- data/docs/code/Utopia/Controller/Respond/Converter/ToJSON.html +323 -317
- data/docs/code/Utopia/Controller/Respond/Passthrough.html +266 -260
- data/docs/code/Utopia/Controller/Respond/Responder.html +449 -443
- data/docs/code/Utopia/Controller/Rewrite.html +260 -260
- data/docs/code/Utopia/Controller/Rewrite/ClassMethods.html +216 -216
- data/docs/code/Utopia/Controller/Rewrite/ExtractPrefixRule.html +303 -303
- data/docs/code/Utopia/Controller/Rewrite/Rewriter.html +402 -402
- data/docs/code/Utopia/Controller/Rewrite/Rule.html +193 -193
- data/docs/code/Utopia/Controller/Variables.html +428 -428
- data/docs/code/Utopia/Controllers.html +216 -216
- data/docs/code/Utopia/Exceptions.html +125 -125
- data/docs/code/Utopia/Exceptions/Handler.html +405 -405
- data/docs/code/Utopia/Exceptions/Mailer.html +400 -394
- data/docs/code/Utopia/Extensions.html +116 -116
- data/docs/code/Utopia/Extensions/ArraySplit.html +164 -164
- data/docs/code/Utopia/Extensions/DateTimeComparison.html +173 -173
- data/docs/code/Utopia/Extensions/TimeDateComparison.html +173 -173
- data/docs/code/Utopia/HTTP.html +193 -187
- data/docs/code/Utopia/HTTP/Status.html +355 -355
- data/docs/code/Utopia/Locale.html +522 -522
- data/docs/code/Utopia/Localization.html +886 -880
- data/docs/code/Utopia/Localization/Wrapper.html +403 -403
- data/docs/code/Utopia/Logger.html +185 -185
- data/docs/code/Utopia/Logger/CompactFormatter.html +290 -290
- data/docs/code/Utopia/Path.html +2562 -2556
- data/docs/code/Utopia/Path/Matcher.html +395 -395
- data/docs/code/Utopia/Path/Matcher/MatchData.html +418 -418
- data/docs/code/Utopia/Redirection.html +148 -142
- data/docs/code/Utopia/Redirection/ClientRedirect.html +594 -594
- data/docs/code/Utopia/Redirection/DirectoryIndex.html +265 -265
- data/docs/code/Utopia/Redirection/Errors.html +391 -385
- data/docs/code/Utopia/Redirection/Moved.html +265 -265
- data/docs/code/Utopia/Redirection/RequestFailure.html +201 -201
- data/docs/code/Utopia/Redirection/Rewrite.html +265 -265
- data/docs/code/Utopia/Session.html +723 -717
- data/docs/code/Utopia/Session/LazyHash.html +709 -709
- data/docs/code/Utopia/Setup.html +783 -777
- data/docs/code/Utopia/Static.html +516 -510
- data/docs/code/Utopia/Static/LocalFile.html +875 -869
- data/docs/code/Utopia/Static/MimeTypeLoader.html +427 -427
- data/docs/code/Utopia/Static/MimeTypeLoader/ExpansionError.html +123 -123
- data/docs/code/_index.html +757 -757
- data/docs/code/class_list.html +51 -51
- data/docs/code/css/full_list.css +58 -58
- data/docs/code/css/style.css +496 -499
- data/docs/code/file.README.html +72 -70
- data/docs/code/file_list.html +56 -56
- data/docs/code/frames.html +17 -17
- data/docs/code/index.html +72 -70
- data/docs/code/js/app.js +292 -248
- data/docs/code/js/full_list.js +216 -216
- data/docs/code/js/jquery.js +3 -3
- data/docs/code/method_list.html +3443 -3443
- data/docs/code/top-level-namespace.html +109 -109
- data/docs/index.html +2 -2
- data/docs/wiki.html +2 -2
- data/docs/wiki/edit.html +1 -1
- data/docs/wiki/javascript.html +153 -0
- data/docs/wiki/javascript/index.html +153 -0
- data/documentation/.yarnrc +1 -0
- data/documentation/Gemfile +1 -0
- data/documentation/config/environment.rb +1 -0
- data/documentation/pages/wiki/content.md +1 -1
- data/documentation/pages/wiki/javascript/content.md +75 -0
- data/documentation/pages/wiki/links.yaml +3 -1
- data/lib/utopia/command/site.rb +4 -4
- data/lib/utopia/version.rb +1 -1
- data/setup/site/.yarnrc +1 -0
- data/setup/site/tasks/yarn.rake +32 -0
- data/spec/utopia/command_spec.rb +2 -2
- metadata +8 -9
- data/docs/wiki/bower-integration.html +0 -74
- data/docs/wiki/bower-integration/index.html +0 -74
- data/documentation/.bowerrc +0 -4
- data/documentation/pages/wiki/bower-integration/content.md +0 -25
- data/setup/.bowerrc +0 -3
- data/setup/site/.bowerrc +0 -4
- data/setup/site/tasks/bower.rake +0 -45
|
@@ -1,430 +1,436 @@
|
|
|
1
|
-
<!DOCTYPE html>
|
|
2
|
-
<html>
|
|
3
|
-
<head>
|
|
4
|
-
<meta charset="utf-8">
|
|
5
|
-
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
6
|
-
<title>
|
|
7
|
-
Class: Utopia::Controller
|
|
8
|
-
|
|
9
|
-
— Documentation by YARD 0.9.
|
|
10
|
-
|
|
11
|
-
</title>
|
|
12
|
-
|
|
13
|
-
<link rel="stylesheet" href="../css/style.css" type="text/css" charset="utf-8" />
|
|
14
|
-
|
|
15
|
-
<link rel="stylesheet" href="../css/common.css" type="text/css" charset="utf-8" />
|
|
16
|
-
|
|
17
|
-
<script type="text/javascript" charset="utf-8">
|
|
18
|
-
pathId = "Utopia::Controller";
|
|
19
|
-
relpath = '../';
|
|
20
|
-
</script>
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
<script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
|
|
24
|
-
|
|
25
|
-
<script type="text/javascript" charset="utf-8" src="../js/app.js"></script>
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
</head>
|
|
29
|
-
<body>
|
|
30
|
-
<div class="nav_wrap">
|
|
31
|
-
<iframe id="nav" src="../class_list.html?1"></iframe>
|
|
32
|
-
<div id="resizer"></div>
|
|
33
|
-
</div>
|
|
34
|
-
|
|
35
|
-
<div id="main" tabindex="-1">
|
|
36
|
-
<div id="header">
|
|
37
|
-
<div id="menu">
|
|
38
|
-
|
|
39
|
-
<a href="../_index.html">Index (C)</a> »
|
|
40
|
-
<span class='title'><span class='object_link'><a href="../Utopia.html" title="Utopia (module)">Utopia</a></span></span>
|
|
41
|
-
»
|
|
42
|
-
<span class="title">Controller</span>
|
|
43
|
-
|
|
44
|
-
</div>
|
|
45
|
-
|
|
46
|
-
<div id="search">
|
|
47
|
-
|
|
48
|
-
<a class="full_list_link" id="class_list_link"
|
|
49
|
-
href="../class_list.html">
|
|
50
|
-
|
|
51
|
-
<svg width="24" height="24">
|
|
52
|
-
<rect x="0" y="4" width="24" height="4" rx="1" ry="1"></rect>
|
|
53
|
-
<rect x="0" y="12" width="24" height="4" rx="1" ry="1"></rect>
|
|
54
|
-
<rect x="0" y="20" width="24" height="4" rx="1" ry="1"></rect>
|
|
55
|
-
</svg>
|
|
56
|
-
</a>
|
|
57
|
-
|
|
58
|
-
</div>
|
|
59
|
-
<div class="clear"></div>
|
|
60
|
-
</div>
|
|
61
|
-
|
|
62
|
-
<div id="content"><h1>Class: Utopia::Controller
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
</h1>
|
|
67
|
-
<div class="box_info">
|
|
68
|
-
|
|
69
|
-
<dl>
|
|
70
|
-
<dt>Inherits:</dt>
|
|
71
|
-
<dd>
|
|
72
|
-
<span class="inheritName">Object</span>
|
|
73
|
-
|
|
74
|
-
<ul class="fullTree">
|
|
75
|
-
<li>Object</li>
|
|
76
|
-
|
|
77
|
-
<li class="next">Utopia::Controller</li>
|
|
78
|
-
|
|
79
|
-
</ul>
|
|
80
|
-
<a href="#" class="inheritanceTree">show all</a>
|
|
81
|
-
|
|
82
|
-
</dd>
|
|
83
|
-
</dl>
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
<dl>
|
|
96
|
-
<dt>Defined in:</dt>
|
|
97
|
-
<dd>lib/utopia/controller.rb<span class="defines">,<br />
|
|
98
|
-
lib/utopia/controller/base.rb,<br /> lib/utopia/controller/actions.rb,<br /> lib/utopia/controller/respond.rb,<br /> lib/utopia/controller/rewrite.rb,<br /> lib/utopia/controller/variables.rb</span>
|
|
99
|
-
</dd>
|
|
100
|
-
</dl>
|
|
101
|
-
|
|
102
|
-
</div>
|
|
103
|
-
|
|
104
|
-
<h2>Overview</h2><div class="docstring">
|
|
105
|
-
<div class="discussion">
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html>
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="utf-8">
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
6
|
+
<title>
|
|
7
|
+
Class: Utopia::Controller
|
|
8
|
+
|
|
9
|
+
— Documentation by YARD 0.9.18
|
|
10
|
+
|
|
11
|
+
</title>
|
|
12
|
+
|
|
13
|
+
<link rel="stylesheet" href="../css/style.css" type="text/css" charset="utf-8" />
|
|
14
|
+
|
|
15
|
+
<link rel="stylesheet" href="../css/common.css" type="text/css" charset="utf-8" />
|
|
16
|
+
|
|
17
|
+
<script type="text/javascript" charset="utf-8">
|
|
18
|
+
pathId = "Utopia::Controller";
|
|
19
|
+
relpath = '../';
|
|
20
|
+
</script>
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
<script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
|
|
24
|
+
|
|
25
|
+
<script type="text/javascript" charset="utf-8" src="../js/app.js"></script>
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
</head>
|
|
29
|
+
<body>
|
|
30
|
+
<div class="nav_wrap">
|
|
31
|
+
<iframe id="nav" src="../class_list.html?1"></iframe>
|
|
32
|
+
<div id="resizer"></div>
|
|
33
|
+
</div>
|
|
34
|
+
|
|
35
|
+
<div id="main" tabindex="-1">
|
|
36
|
+
<div id="header">
|
|
37
|
+
<div id="menu">
|
|
38
|
+
|
|
39
|
+
<a href="../_index.html">Index (C)</a> »
|
|
40
|
+
<span class='title'><span class='object_link'><a href="../Utopia.html" title="Utopia (module)">Utopia</a></span></span>
|
|
41
|
+
»
|
|
42
|
+
<span class="title">Controller</span>
|
|
43
|
+
|
|
44
|
+
</div>
|
|
45
|
+
|
|
46
|
+
<div id="search">
|
|
47
|
+
|
|
48
|
+
<a class="full_list_link" id="class_list_link"
|
|
49
|
+
href="../class_list.html">
|
|
50
|
+
|
|
51
|
+
<svg width="24" height="24">
|
|
52
|
+
<rect x="0" y="4" width="24" height="4" rx="1" ry="1"></rect>
|
|
53
|
+
<rect x="0" y="12" width="24" height="4" rx="1" ry="1"></rect>
|
|
54
|
+
<rect x="0" y="20" width="24" height="4" rx="1" ry="1"></rect>
|
|
55
|
+
</svg>
|
|
56
|
+
</a>
|
|
57
|
+
|
|
58
|
+
</div>
|
|
59
|
+
<div class="clear"></div>
|
|
60
|
+
</div>
|
|
61
|
+
|
|
62
|
+
<div id="content"><h1>Class: Utopia::Controller
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
</h1>
|
|
67
|
+
<div class="box_info">
|
|
68
|
+
|
|
69
|
+
<dl>
|
|
70
|
+
<dt>Inherits:</dt>
|
|
71
|
+
<dd>
|
|
72
|
+
<span class="inheritName">Object</span>
|
|
73
|
+
|
|
74
|
+
<ul class="fullTree">
|
|
75
|
+
<li>Object</li>
|
|
76
|
+
|
|
77
|
+
<li class="next">Utopia::Controller</li>
|
|
78
|
+
|
|
79
|
+
</ul>
|
|
80
|
+
<a href="#" class="inheritanceTree">show all</a>
|
|
81
|
+
|
|
82
|
+
</dd>
|
|
83
|
+
</dl>
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
<dl>
|
|
96
|
+
<dt>Defined in:</dt>
|
|
97
|
+
<dd>lib/utopia/controller.rb<span class="defines">,<br />
|
|
98
|
+
lib/utopia/controller/base.rb,<br /> lib/utopia/controller/actions.rb,<br /> lib/utopia/controller/respond.rb,<br /> lib/utopia/controller/rewrite.rb,<br /> lib/utopia/controller/variables.rb</span>
|
|
99
|
+
</dd>
|
|
100
|
+
</dl>
|
|
101
|
+
|
|
102
|
+
</div>
|
|
103
|
+
|
|
104
|
+
<h2>Overview</h2><div class="docstring">
|
|
105
|
+
<div class="discussion">
|
|
106
106
|
<p>A middleware which loads controller classes and invokes functionality based on the requested path.</p>
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
</div>
|
|
110
|
-
</div>
|
|
111
|
-
<div class="tags">
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
</div><h2>Defined Under Namespace</h2>
|
|
115
|
-
<p class="children">
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
<strong class="modules">Modules:</strong> <span class='object_link'><a href="Controller/Actions.html" title="Utopia::Controller::Actions (module)">Actions</a></span>, <span class='object_link'><a href="Controller/Respond.html" title="Utopia::Controller::Respond (module)">Respond</a></span>, <span class='object_link'><a href="Controller/Rewrite.html" title="Utopia::Controller::Rewrite (module)">Rewrite</a></span>
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
<strong class="classes">Classes:</strong> <span class='object_link'><a href="Controller/Base.html" title="Utopia::Controller::Base (class)">Base</a></span>, <span class='object_link'><a href="Controller/Variables.html" title="Utopia::Controller::Variables (class)">Variables</a></span>
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
</p>
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
<
|
|
131
|
-
|
|
132
|
-
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
</div>
|
|
110
|
+
</div>
|
|
111
|
+
<div class="tags">
|
|
112
|
+
|
|
113
|
+
|
|
114
|
+
</div><h2>Defined Under Namespace</h2>
|
|
115
|
+
<p class="children">
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
<strong class="modules">Modules:</strong> <span class='object_link'><a href="Controller/Actions.html" title="Utopia::Controller::Actions (module)">Actions</a></span>, <span class='object_link'><a href="Controller/Respond.html" title="Utopia::Controller::Respond (module)">Respond</a></span>, <span class='object_link'><a href="Controller/Rewrite.html" title="Utopia::Controller::Rewrite (module)">Rewrite</a></span>
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
|
|
122
|
+
<strong class="classes">Classes:</strong> <span class='object_link'><a href="Controller/Base.html" title="Utopia::Controller::Base (class)">Base</a></span>, <span class='object_link'><a href="Controller/Variables.html" title="Utopia::Controller::Variables (class)">Variables</a></span>
|
|
123
|
+
|
|
124
|
+
|
|
125
|
+
</p>
|
|
126
|
+
|
|
127
|
+
|
|
128
|
+
<h2>
|
|
129
|
+
Constant Summary
|
|
130
|
+
<small><a href="#" class="constants_summary_toggle">collapse</a></small>
|
|
131
|
+
</h2>
|
|
132
|
+
|
|
133
|
+
<dl class="constants">
|
|
134
|
+
|
|
135
|
+
<dt id="CONTROLLER_RB-constant" class="">CONTROLLER_RB =
|
|
136
|
+
<div class="docstring">
|
|
137
|
+
<div class="discussion">
|
|
133
138
|
<p>The controller filename.</p>
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
</div>
|
|
137
|
-
</div>
|
|
138
|
-
<div class="tags">
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
</div>
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
<
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
139
|
+
|
|
140
|
+
|
|
141
|
+
</div>
|
|
142
|
+
</div>
|
|
143
|
+
<div class="tags">
|
|
144
|
+
|
|
145
|
+
|
|
146
|
+
</div>
|
|
147
|
+
</dt>
|
|
148
|
+
<dd><pre class="code"><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>controller.rb</span><span class='tstring_end'>'</span></span><span class='period'>.</span><span class='id identifier rubyid_freeze'>freeze</span></pre></dd>
|
|
149
|
+
|
|
150
|
+
</dl>
|
|
151
|
+
|
|
152
|
+
|
|
153
|
+
|
|
154
|
+
|
|
155
|
+
|
|
156
|
+
<h2>Instance Attribute Summary <small><a href="#" class="summary_toggle">collapse</a></small></h2>
|
|
157
|
+
<ul class="summary">
|
|
158
|
+
|
|
159
|
+
<li class="public ">
|
|
160
|
+
<span class="summary_signature">
|
|
161
|
+
|
|
162
|
+
<a href="#app-instance_method" title="#app (instance method)">#<strong>app</strong> ⇒ Object </a>
|
|
163
|
+
|
|
164
|
+
|
|
165
|
+
|
|
166
|
+
</span>
|
|
167
|
+
|
|
168
|
+
|
|
169
|
+
|
|
170
|
+
|
|
171
|
+
<span class="note title readonly">readonly</span>
|
|
172
|
+
|
|
173
|
+
|
|
174
|
+
|
|
175
|
+
|
|
176
|
+
|
|
177
|
+
|
|
178
|
+
|
|
179
|
+
|
|
180
|
+
|
|
175
181
|
<span class="summary_desc"><div class='inline'><p>Returns the value of attribute app.</p>
|
|
176
|
-
</div></span>
|
|
177
|
-
|
|
178
|
-
</li>
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
</ul>
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
<h2>
|
|
188
|
-
Class Method Summary
|
|
189
|
-
<small><a href="#" class="summary_toggle">collapse</a></small>
|
|
190
|
-
</h2>
|
|
191
|
-
|
|
192
|
-
<ul class="summary">
|
|
193
|
-
|
|
194
|
-
<li class="public ">
|
|
195
|
-
<span class="summary_signature">
|
|
196
|
-
|
|
197
|
-
<a href="#[]-class_method" title="[] (class method)">.<strong>[]</strong>(request) ⇒ Object </a>
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
</span>
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
182
|
+
</div></span>
|
|
183
|
+
|
|
184
|
+
</li>
|
|
185
|
+
|
|
186
|
+
|
|
187
|
+
</ul>
|
|
188
|
+
|
|
189
|
+
|
|
190
|
+
|
|
191
|
+
|
|
192
|
+
|
|
193
|
+
<h2>
|
|
194
|
+
Class Method Summary
|
|
195
|
+
<small><a href="#" class="summary_toggle">collapse</a></small>
|
|
196
|
+
</h2>
|
|
197
|
+
|
|
198
|
+
<ul class="summary">
|
|
199
|
+
|
|
200
|
+
<li class="public ">
|
|
201
|
+
<span class="summary_signature">
|
|
202
|
+
|
|
203
|
+
<a href="#[]-class_method" title="[] (class method)">.<strong>[]</strong>(request) ⇒ Object </a>
|
|
204
|
+
|
|
205
|
+
|
|
206
|
+
|
|
207
|
+
</span>
|
|
208
|
+
|
|
209
|
+
|
|
210
|
+
|
|
211
|
+
|
|
212
|
+
|
|
213
|
+
|
|
214
|
+
|
|
215
|
+
|
|
216
|
+
|
|
211
217
|
<span class="summary_desc"><div class='inline'>
|
|
212
|
-
</div></span>
|
|
213
|
-
|
|
214
|
-
</li>
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
</ul>
|
|
218
|
-
|
|
219
|
-
<h2>
|
|
220
|
-
Instance Method Summary
|
|
221
|
-
<small><a href="#" class="summary_toggle">collapse</a></small>
|
|
222
|
-
</h2>
|
|
223
|
-
|
|
224
|
-
<ul class="summary">
|
|
225
|
-
|
|
226
|
-
<li class="public ">
|
|
227
|
-
<span class="summary_signature">
|
|
228
|
-
|
|
229
|
-
<a href="#call-instance_method" title="#call (instance method)">#<strong>call</strong>(env) ⇒ Object </a>
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
</span>
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
218
|
+
</div></span>
|
|
219
|
+
|
|
220
|
+
</li>
|
|
221
|
+
|
|
222
|
+
|
|
223
|
+
</ul>
|
|
224
|
+
|
|
225
|
+
<h2>
|
|
226
|
+
Instance Method Summary
|
|
227
|
+
<small><a href="#" class="summary_toggle">collapse</a></small>
|
|
228
|
+
</h2>
|
|
229
|
+
|
|
230
|
+
<ul class="summary">
|
|
231
|
+
|
|
232
|
+
<li class="public ">
|
|
233
|
+
<span class="summary_signature">
|
|
234
|
+
|
|
235
|
+
<a href="#call-instance_method" title="#call (instance method)">#<strong>call</strong>(env) ⇒ Object </a>
|
|
236
|
+
|
|
237
|
+
|
|
238
|
+
|
|
239
|
+
</span>
|
|
240
|
+
|
|
241
|
+
|
|
242
|
+
|
|
243
|
+
|
|
244
|
+
|
|
245
|
+
|
|
246
|
+
|
|
247
|
+
|
|
248
|
+
|
|
243
249
|
<span class="summary_desc"><div class='inline'>
|
|
244
|
-
</div></span>
|
|
245
|
-
|
|
246
|
-
</li>
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
<li class="public ">
|
|
250
|
-
<span class="summary_signature">
|
|
251
|
-
|
|
252
|
-
<a href="#freeze-instance_method" title="#freeze (instance method)">#<strong>freeze</strong> ⇒ Object </a>
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
</span>
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
250
|
+
</div></span>
|
|
251
|
+
|
|
252
|
+
</li>
|
|
253
|
+
|
|
254
|
+
|
|
255
|
+
<li class="public ">
|
|
256
|
+
<span class="summary_signature">
|
|
257
|
+
|
|
258
|
+
<a href="#freeze-instance_method" title="#freeze (instance method)">#<strong>freeze</strong> ⇒ Object </a>
|
|
259
|
+
|
|
260
|
+
|
|
261
|
+
|
|
262
|
+
</span>
|
|
263
|
+
|
|
264
|
+
|
|
265
|
+
|
|
266
|
+
|
|
267
|
+
|
|
268
|
+
|
|
269
|
+
|
|
270
|
+
|
|
271
|
+
|
|
266
272
|
<span class="summary_desc"><div class='inline'>
|
|
267
|
-
</div></span>
|
|
268
|
-
|
|
269
|
-
</li>
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
<li class="public ">
|
|
273
|
-
<span class="summary_signature">
|
|
274
|
-
|
|
275
|
-
<a href="#initialize-instance_method" title="#initialize (instance method)">#<strong>initialize</strong>(app, root: Utopia::default_root, base: Controller::Base) ⇒ Controller </a>
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
</span>
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
<span class="note title constructor">constructor</span>
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
273
|
+
</div></span>
|
|
274
|
+
|
|
275
|
+
</li>
|
|
276
|
+
|
|
277
|
+
|
|
278
|
+
<li class="public ">
|
|
279
|
+
<span class="summary_signature">
|
|
280
|
+
|
|
281
|
+
<a href="#initialize-instance_method" title="#initialize (instance method)">#<strong>initialize</strong>(app, root: Utopia::default_root, base: Controller::Base) ⇒ Controller </a>
|
|
282
|
+
|
|
283
|
+
|
|
284
|
+
|
|
285
|
+
</span>
|
|
286
|
+
|
|
287
|
+
|
|
288
|
+
<span class="note title constructor">constructor</span>
|
|
289
|
+
|
|
290
|
+
|
|
291
|
+
|
|
292
|
+
|
|
293
|
+
|
|
294
|
+
|
|
295
|
+
|
|
296
|
+
|
|
291
297
|
<span class="summary_desc"><div class='inline'><p>A new instance of Controller.</p>
|
|
292
|
-
</div></span>
|
|
293
|
-
|
|
294
|
-
</li>
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
<li class="public ">
|
|
298
|
-
<span class="summary_signature">
|
|
299
|
-
|
|
300
|
-
<a href="#invoke_controllers-instance_method" title="#invoke_controllers (instance method)">#<strong>invoke_controllers</strong>(request) ⇒ Object </a>
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
</span>
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
298
|
+
</div></span>
|
|
299
|
+
|
|
300
|
+
</li>
|
|
301
|
+
|
|
302
|
+
|
|
303
|
+
<li class="public ">
|
|
304
|
+
<span class="summary_signature">
|
|
305
|
+
|
|
306
|
+
<a href="#invoke_controllers-instance_method" title="#invoke_controllers (instance method)">#<strong>invoke_controllers</strong>(request) ⇒ Object </a>
|
|
307
|
+
|
|
308
|
+
|
|
309
|
+
|
|
310
|
+
</span>
|
|
311
|
+
|
|
312
|
+
|
|
313
|
+
|
|
314
|
+
|
|
315
|
+
|
|
316
|
+
|
|
317
|
+
|
|
318
|
+
|
|
319
|
+
|
|
314
320
|
<span class="summary_desc"><div class='inline'><p>Invoke the controller layer for a given request.</p>
|
|
315
|
-
</div></span>
|
|
316
|
-
|
|
317
|
-
</li>
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
<li class="public ">
|
|
321
|
-
<span class="summary_signature">
|
|
322
|
-
|
|
323
|
-
<a href="#load_controller_file-instance_method" title="#load_controller_file (instance method)">#<strong>load_controller_file</strong>(uri_path) ⇒ Object </a>
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
</span>
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
321
|
+
</div></span>
|
|
322
|
+
|
|
323
|
+
</li>
|
|
324
|
+
|
|
325
|
+
|
|
326
|
+
<li class="public ">
|
|
327
|
+
<span class="summary_signature">
|
|
328
|
+
|
|
329
|
+
<a href="#load_controller_file-instance_method" title="#load_controller_file (instance method)">#<strong>load_controller_file</strong>(uri_path) ⇒ Object </a>
|
|
330
|
+
|
|
331
|
+
|
|
332
|
+
|
|
333
|
+
</span>
|
|
334
|
+
|
|
335
|
+
|
|
336
|
+
|
|
337
|
+
|
|
338
|
+
|
|
339
|
+
|
|
340
|
+
|
|
341
|
+
|
|
342
|
+
|
|
337
343
|
<span class="summary_desc"><div class='inline'><p>Loads the controller file for the given relative url_path.</p>
|
|
338
|
-
</div></span>
|
|
339
|
-
|
|
340
|
-
</li>
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
<li class="public ">
|
|
344
|
-
<span class="summary_signature">
|
|
345
|
-
|
|
346
|
-
<a href="#lookup_controller-instance_method" title="#lookup_controller (instance method)">#<strong>lookup_controller</strong>(path) ⇒ Object </a>
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
</span>
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
344
|
+
</div></span>
|
|
345
|
+
|
|
346
|
+
</li>
|
|
347
|
+
|
|
348
|
+
|
|
349
|
+
<li class="public ">
|
|
350
|
+
<span class="summary_signature">
|
|
351
|
+
|
|
352
|
+
<a href="#lookup_controller-instance_method" title="#lookup_controller (instance method)">#<strong>lookup_controller</strong>(path) ⇒ Object </a>
|
|
353
|
+
|
|
354
|
+
|
|
355
|
+
|
|
356
|
+
</span>
|
|
357
|
+
|
|
358
|
+
|
|
359
|
+
|
|
360
|
+
|
|
361
|
+
|
|
362
|
+
|
|
363
|
+
|
|
364
|
+
|
|
365
|
+
|
|
360
366
|
<span class="summary_desc"><div class='inline'><p>Fetch the controller for the given relative path.</p>
|
|
361
|
-
</div></span>
|
|
362
|
-
|
|
363
|
-
</li>
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
</ul>
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
<div id="constructor_details" class="method_details_list">
|
|
370
|
-
<h2>Constructor Details</h2>
|
|
371
|
-
|
|
372
|
-
<div class="method_details first">
|
|
373
|
-
<h3 class="signature first" id="initialize-instance_method">
|
|
374
|
-
|
|
375
|
-
#<strong>initialize</strong>(app, root: Utopia::default_root, base: Controller::Base) ⇒ <tt><span class='object_link'><a href="" title="Utopia::Controller (class)">Controller</a></span></tt>
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
</h3><div class="docstring">
|
|
382
|
-
<div class="discussion">
|
|
367
|
+
</div></span>
|
|
368
|
+
|
|
369
|
+
</li>
|
|
370
|
+
|
|
371
|
+
|
|
372
|
+
</ul>
|
|
373
|
+
|
|
374
|
+
|
|
375
|
+
<div id="constructor_details" class="method_details_list">
|
|
376
|
+
<h2>Constructor Details</h2>
|
|
377
|
+
|
|
378
|
+
<div class="method_details first">
|
|
379
|
+
<h3 class="signature first" id="initialize-instance_method">
|
|
380
|
+
|
|
381
|
+
#<strong>initialize</strong>(app, root: Utopia::default_root, base: Controller::Base) ⇒ <tt><span class='object_link'><a href="" title="Utopia::Controller (class)">Controller</a></span></tt>
|
|
382
|
+
|
|
383
|
+
|
|
384
|
+
|
|
385
|
+
|
|
386
|
+
|
|
387
|
+
</h3><div class="docstring">
|
|
388
|
+
<div class="discussion">
|
|
383
389
|
<p>Returns a new instance of Controller</p>
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
</div>
|
|
387
|
-
</div>
|
|
388
|
-
<div class="tags">
|
|
389
|
-
<p class="tag_title">Parameters:</p>
|
|
390
|
-
<ul class="param">
|
|
391
|
-
|
|
392
|
-
<li>
|
|
393
|
-
|
|
394
|
-
<span class='name'>root</span>
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
<span class='type'>(<tt>String</tt>)</span>
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
—
|
|
390
|
+
|
|
391
|
+
|
|
392
|
+
</div>
|
|
393
|
+
</div>
|
|
394
|
+
<div class="tags">
|
|
395
|
+
<p class="tag_title">Parameters:</p>
|
|
396
|
+
<ul class="param">
|
|
397
|
+
|
|
398
|
+
<li>
|
|
399
|
+
|
|
400
|
+
<span class='name'>root</span>
|
|
401
|
+
|
|
402
|
+
|
|
403
|
+
<span class='type'>(<tt>String</tt>)</span>
|
|
404
|
+
|
|
405
|
+
|
|
406
|
+
|
|
407
|
+
—
|
|
402
408
|
<div class='inline'><p>The content root where controllers will be loaded from.</p>
|
|
403
|
-
</div>
|
|
404
|
-
|
|
405
|
-
</li>
|
|
406
|
-
|
|
407
|
-
<li>
|
|
408
|
-
|
|
409
|
-
<span class='name'>base</span>
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
<span class='type'>(<tt>Class</tt>)</span>
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
—
|
|
409
|
+
</div>
|
|
410
|
+
|
|
411
|
+
</li>
|
|
412
|
+
|
|
413
|
+
<li>
|
|
414
|
+
|
|
415
|
+
<span class='name'>base</span>
|
|
416
|
+
|
|
417
|
+
|
|
418
|
+
<span class='type'>(<tt>Class</tt>)</span>
|
|
419
|
+
|
|
420
|
+
|
|
421
|
+
|
|
422
|
+
—
|
|
417
423
|
<div class='inline'><p>The base class for controllers.</p>
|
|
418
|
-
</div>
|
|
419
|
-
|
|
420
|
-
</li>
|
|
421
|
-
|
|
422
|
-
</ul>
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
</div><table class="source_code">
|
|
426
|
-
<tr>
|
|
427
|
-
<td>
|
|
424
|
+
</div>
|
|
425
|
+
|
|
426
|
+
</li>
|
|
427
|
+
|
|
428
|
+
</ul>
|
|
429
|
+
|
|
430
|
+
|
|
431
|
+
</div><table class="source_code">
|
|
432
|
+
<tr>
|
|
433
|
+
<td>
|
|
428
434
|
<pre class="lines">
|
|
429
435
|
|
|
430
436
|
|
|
@@ -435,9 +441,9 @@
|
|
|
435
441
|
63
|
|
436
442
|
64
|
|
437
443
|
65
|
|
438
|
-
66</pre>
|
|
439
|
-
</td>
|
|
440
|
-
<td>
|
|
444
|
+
66</pre>
|
|
445
|
+
</td>
|
|
446
|
+
<td>
|
|
441
447
|
<pre class="code"><span class="info file"># File 'lib/utopia/controller.rb', line 59</span>
|
|
442
448
|
|
|
443
449
|
<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_app'>app</span><span class='comma'>,</span> <span class='label'>root:</span> <span class='const'><span class='object_link'><a href="../Utopia.html" title="Utopia (module)">Utopia</a></span></span><span class='op'>::</span><span class='id identifier rubyid_default_root'><span class='object_link'><a href="../Utopia.html#default_root-class_method" title="Utopia.default_root (method)">default_root</a></span></span><span class='comma'>,</span> <span class='label'>base:</span> <span class='const'><span class='object_link'><a href="" title="Utopia::Controller (class)">Controller</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Controller/Base.html" title="Utopia::Controller::Base (class)">Base</a></span></span><span class='rparen'>)</span>
|
|
@@ -447,114 +453,114 @@
|
|
|
447
453
|
<span class='ivar'>@controller_cache</span> <span class='op'>=</span> <span class='const'>Concurrent</span><span class='op'>::</span><span class='const'>Map</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span>
|
|
448
454
|
|
|
449
455
|
<span class='ivar'>@base</span> <span class='op'>=</span> <span class='id identifier rubyid_base'>base</span>
|
|
450
|
-
<span class='kw'>end</span></pre>
|
|
451
|
-
</td>
|
|
452
|
-
</tr>
|
|
453
|
-
</table>
|
|
454
|
-
</div>
|
|
455
|
-
|
|
456
|
-
</div>
|
|
457
|
-
|
|
458
|
-
<div id="instance_attr_details" class="attr_details">
|
|
459
|
-
<h2>Instance Attribute Details</h2>
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
<span id=""></span>
|
|
463
|
-
<div class="method_details first">
|
|
464
|
-
<h3 class="signature first" id="app-instance_method">
|
|
465
|
-
|
|
466
|
-
#<strong>app</strong> ⇒ <tt>Object</tt> <span class="extras">(readonly)</span>
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
</h3><div class="docstring">
|
|
473
|
-
<div class="discussion">
|
|
456
|
+
<span class='kw'>end</span></pre>
|
|
457
|
+
</td>
|
|
458
|
+
</tr>
|
|
459
|
+
</table>
|
|
460
|
+
</div>
|
|
461
|
+
|
|
462
|
+
</div>
|
|
463
|
+
|
|
464
|
+
<div id="instance_attr_details" class="attr_details">
|
|
465
|
+
<h2>Instance Attribute Details</h2>
|
|
466
|
+
|
|
467
|
+
|
|
468
|
+
<span id=""></span>
|
|
469
|
+
<div class="method_details first">
|
|
470
|
+
<h3 class="signature first" id="app-instance_method">
|
|
471
|
+
|
|
472
|
+
#<strong>app</strong> ⇒ <tt>Object</tt> <span class="extras">(readonly)</span>
|
|
473
|
+
|
|
474
|
+
|
|
475
|
+
|
|
476
|
+
|
|
477
|
+
|
|
478
|
+
</h3><div class="docstring">
|
|
479
|
+
<div class="discussion">
|
|
474
480
|
<p>Returns the value of attribute app</p>
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
</div>
|
|
478
|
-
</div>
|
|
479
|
-
<div class="tags">
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
</div><table class="source_code">
|
|
483
|
-
<tr>
|
|
484
|
-
<td>
|
|
481
|
+
|
|
482
|
+
|
|
483
|
+
</div>
|
|
484
|
+
</div>
|
|
485
|
+
<div class="tags">
|
|
486
|
+
|
|
487
|
+
|
|
488
|
+
</div><table class="source_code">
|
|
489
|
+
<tr>
|
|
490
|
+
<td>
|
|
485
491
|
<pre class="lines">
|
|
486
492
|
|
|
487
493
|
|
|
488
494
|
68
|
|
489
495
|
69
|
|
490
|
-
70</pre>
|
|
491
|
-
</td>
|
|
492
|
-
<td>
|
|
496
|
+
70</pre>
|
|
497
|
+
</td>
|
|
498
|
+
<td>
|
|
493
499
|
<pre class="code"><span class="info file"># File 'lib/utopia/controller.rb', line 68</span>
|
|
494
500
|
|
|
495
501
|
<span class='kw'>def</span> <span class='id identifier rubyid_app'>app</span>
|
|
496
502
|
<span class='ivar'>@app</span>
|
|
497
|
-
<span class='kw'>end</span></pre>
|
|
498
|
-
</td>
|
|
499
|
-
</tr>
|
|
500
|
-
</table>
|
|
501
|
-
</div>
|
|
502
|
-
|
|
503
|
-
</div>
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
<div id="class_method_details" class="method_details_list">
|
|
507
|
-
<h2>Class Method Details</h2>
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
<div class="method_details first">
|
|
511
|
-
<h3 class="signature first" id="[]-class_method">
|
|
512
|
-
|
|
513
|
-
.<strong>[]</strong>(request) ⇒ <tt>Object</tt>
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
</h3><table class="source_code">
|
|
520
|
-
<tr>
|
|
521
|
-
<td>
|
|
503
|
+
<span class='kw'>end</span></pre>
|
|
504
|
+
</td>
|
|
505
|
+
</tr>
|
|
506
|
+
</table>
|
|
507
|
+
</div>
|
|
508
|
+
|
|
509
|
+
</div>
|
|
510
|
+
|
|
511
|
+
|
|
512
|
+
<div id="class_method_details" class="method_details_list">
|
|
513
|
+
<h2>Class Method Details</h2>
|
|
514
|
+
|
|
515
|
+
|
|
516
|
+
<div class="method_details first">
|
|
517
|
+
<h3 class="signature first" id="[]-class_method">
|
|
518
|
+
|
|
519
|
+
.<strong>[]</strong>(request) ⇒ <tt>Object</tt>
|
|
520
|
+
|
|
521
|
+
|
|
522
|
+
|
|
523
|
+
|
|
524
|
+
|
|
525
|
+
</h3><table class="source_code">
|
|
526
|
+
<tr>
|
|
527
|
+
<td>
|
|
522
528
|
<pre class="lines">
|
|
523
529
|
|
|
524
530
|
|
|
525
531
|
53
|
|
526
532
|
54
|
|
527
|
-
55</pre>
|
|
528
|
-
</td>
|
|
529
|
-
<td>
|
|
533
|
+
55</pre>
|
|
534
|
+
</td>
|
|
535
|
+
<td>
|
|
530
536
|
<pre class="code"><span class="info file"># File 'lib/utopia/controller.rb', line 53</span>
|
|
531
537
|
|
|
532
538
|
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='op'>[]</span> <span class='id identifier rubyid_request'>request</span>
|
|
533
539
|
<span class='id identifier rubyid_request'>request</span><span class='period'>.</span><span class='id identifier rubyid_env'>env</span><span class='lbracket'>[</span><span class='const'><span class='object_link'><a href="../Utopia.html#VARIABLES_KEY-constant" title="Utopia::VARIABLES_KEY (constant)">VARIABLES_KEY</a></span></span><span class='rbracket'>]</span>
|
|
534
|
-
<span class='kw'>end</span></pre>
|
|
535
|
-
</td>
|
|
536
|
-
</tr>
|
|
537
|
-
</table>
|
|
538
|
-
</div>
|
|
539
|
-
|
|
540
|
-
</div>
|
|
541
|
-
|
|
542
|
-
<div id="instance_method_details" class="method_details_list">
|
|
543
|
-
<h2>Instance Method Details</h2>
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
<div class="method_details first">
|
|
547
|
-
<h3 class="signature first" id="call-instance_method">
|
|
548
|
-
|
|
549
|
-
#<strong>call</strong>(env) ⇒ <tt>Object</tt>
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
</h3><table class="source_code">
|
|
556
|
-
<tr>
|
|
557
|
-
<td>
|
|
540
|
+
<span class='kw'>end</span></pre>
|
|
541
|
+
</td>
|
|
542
|
+
</tr>
|
|
543
|
+
</table>
|
|
544
|
+
</div>
|
|
545
|
+
|
|
546
|
+
</div>
|
|
547
|
+
|
|
548
|
+
<div id="instance_method_details" class="method_details_list">
|
|
549
|
+
<h2>Instance Method Details</h2>
|
|
550
|
+
|
|
551
|
+
|
|
552
|
+
<div class="method_details first">
|
|
553
|
+
<h3 class="signature first" id="call-instance_method">
|
|
554
|
+
|
|
555
|
+
#<strong>call</strong>(env) ⇒ <tt>Object</tt>
|
|
556
|
+
|
|
557
|
+
|
|
558
|
+
|
|
559
|
+
|
|
560
|
+
|
|
561
|
+
</h3><table class="source_code">
|
|
562
|
+
<tr>
|
|
563
|
+
<td>
|
|
558
564
|
<pre class="lines">
|
|
559
565
|
|
|
560
566
|
|
|
@@ -568,9 +574,9 @@
|
|
|
568
574
|
163
|
|
569
575
|
164
|
|
570
576
|
165
|
|
571
|
-
166</pre>
|
|
572
|
-
</td>
|
|
573
|
-
<td>
|
|
577
|
+
166</pre>
|
|
578
|
+
</td>
|
|
579
|
+
<td>
|
|
574
580
|
<pre class="code"><span class="info file"># File 'lib/utopia/controller.rb', line 156</span>
|
|
575
581
|
|
|
576
582
|
<span class='kw'>def</span> <span class='id identifier rubyid_call'>call</span><span class='lparen'>(</span><span class='id identifier rubyid_env'>env</span><span class='rparen'>)</span>
|
|
@@ -583,24 +589,24 @@
|
|
|
583
589
|
<span class='kw'>end</span>
|
|
584
590
|
|
|
585
591
|
<span class='kw'>return</span> <span class='ivar'>@app</span><span class='period'>.</span><span class='id identifier rubyid_call'>call</span><span class='lparen'>(</span><span class='id identifier rubyid_env'>env</span><span class='rparen'>)</span>
|
|
586
|
-
<span class='kw'>end</span></pre>
|
|
587
|
-
</td>
|
|
588
|
-
</tr>
|
|
589
|
-
</table>
|
|
590
|
-
</div>
|
|
591
|
-
|
|
592
|
-
<div class="method_details ">
|
|
593
|
-
<h3 class="signature " id="freeze-instance_method">
|
|
594
|
-
|
|
595
|
-
#<strong>freeze</strong> ⇒ <tt>Object</tt>
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
</h3><table class="source_code">
|
|
602
|
-
<tr>
|
|
603
|
-
<td>
|
|
592
|
+
<span class='kw'>end</span></pre>
|
|
593
|
+
</td>
|
|
594
|
+
</tr>
|
|
595
|
+
</table>
|
|
596
|
+
</div>
|
|
597
|
+
|
|
598
|
+
<div class="method_details ">
|
|
599
|
+
<h3 class="signature " id="freeze-instance_method">
|
|
600
|
+
|
|
601
|
+
#<strong>freeze</strong> ⇒ <tt>Object</tt>
|
|
602
|
+
|
|
603
|
+
|
|
604
|
+
|
|
605
|
+
|
|
606
|
+
|
|
607
|
+
</h3><table class="source_code">
|
|
608
|
+
<tr>
|
|
609
|
+
<td>
|
|
604
610
|
<pre class="lines">
|
|
605
611
|
|
|
606
612
|
|
|
@@ -611,9 +617,9 @@
|
|
|
611
617
|
74
|
|
612
618
|
75
|
|
613
619
|
76
|
|
614
|
-
77</pre>
|
|
615
|
-
</td>
|
|
616
|
-
<td>
|
|
620
|
+
77</pre>
|
|
621
|
+
</td>
|
|
622
|
+
<td>
|
|
617
623
|
<pre class="code"><span class="info file"># File 'lib/utopia/controller.rb', line 70</span>
|
|
618
624
|
|
|
619
625
|
<span class='kw'>def</span> <span class='id identifier rubyid_freeze'>freeze</span>
|
|
@@ -623,47 +629,47 @@
|
|
|
623
629
|
<span class='ivar'>@base</span><span class='period'>.</span><span class='id identifier rubyid_freeze'>freeze</span>
|
|
624
630
|
|
|
625
631
|
<span class='kw'>super</span>
|
|
626
|
-
<span class='kw'>end</span></pre>
|
|
627
|
-
</td>
|
|
628
|
-
</tr>
|
|
629
|
-
</table>
|
|
630
|
-
</div>
|
|
631
|
-
|
|
632
|
-
<div class="method_details ">
|
|
633
|
-
<h3 class="signature " id="invoke_controllers-instance_method">
|
|
634
|
-
|
|
635
|
-
#<strong>invoke_controllers</strong>(request) ⇒ <tt>Object</tt>
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
</h3><div class="docstring">
|
|
642
|
-
<div class="discussion">
|
|
632
|
+
<span class='kw'>end</span></pre>
|
|
633
|
+
</td>
|
|
634
|
+
</tr>
|
|
635
|
+
</table>
|
|
636
|
+
</div>
|
|
637
|
+
|
|
638
|
+
<div class="method_details ">
|
|
639
|
+
<h3 class="signature " id="invoke_controllers-instance_method">
|
|
640
|
+
|
|
641
|
+
#<strong>invoke_controllers</strong>(request) ⇒ <tt>Object</tt>
|
|
642
|
+
|
|
643
|
+
|
|
644
|
+
|
|
645
|
+
|
|
646
|
+
|
|
647
|
+
</h3><div class="docstring">
|
|
648
|
+
<div class="discussion">
|
|
643
649
|
<p>Invoke the controller layer for a given request. The request path may be rewritten.</p>
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
</div>
|
|
647
|
-
</div>
|
|
648
|
-
<div class="tags">
|
|
649
|
-
|
|
650
|
-
<p class="tag_title">Raises:</p>
|
|
651
|
-
<ul class="raise">
|
|
652
|
-
|
|
653
|
-
<li>
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
<span class='type'>(<tt>ArgumentError</tt>)</span>
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
</li>
|
|
661
|
-
|
|
662
|
-
</ul>
|
|
663
|
-
|
|
664
|
-
</div><table class="source_code">
|
|
665
|
-
<tr>
|
|
666
|
-
<td>
|
|
650
|
+
|
|
651
|
+
|
|
652
|
+
</div>
|
|
653
|
+
</div>
|
|
654
|
+
<div class="tags">
|
|
655
|
+
|
|
656
|
+
<p class="tag_title">Raises:</p>
|
|
657
|
+
<ul class="raise">
|
|
658
|
+
|
|
659
|
+
<li>
|
|
660
|
+
|
|
661
|
+
|
|
662
|
+
<span class='type'>(<tt>ArgumentError</tt>)</span>
|
|
663
|
+
|
|
664
|
+
|
|
665
|
+
|
|
666
|
+
</li>
|
|
667
|
+
|
|
668
|
+
</ul>
|
|
669
|
+
|
|
670
|
+
</div><table class="source_code">
|
|
671
|
+
<tr>
|
|
672
|
+
<td>
|
|
667
673
|
<pre class="lines">
|
|
668
674
|
|
|
669
675
|
|
|
@@ -701,9 +707,9 @@
|
|
|
701
707
|
151
|
|
702
708
|
152
|
|
703
709
|
153
|
|
704
|
-
154</pre>
|
|
705
|
-
</td>
|
|
706
|
-
<td>
|
|
710
|
+
154</pre>
|
|
711
|
+
</td>
|
|
712
|
+
<td>
|
|
707
713
|
<pre class="code"><span class="info file"># File 'lib/utopia/controller.rb', line 120</span>
|
|
708
714
|
|
|
709
715
|
<span class='kw'>def</span> <span class='id identifier rubyid_invoke_controllers'>invoke_controllers</span><span class='lparen'>(</span><span class='id identifier rubyid_request'>request</span><span class='rparen'>)</span>
|
|
@@ -740,34 +746,34 @@
|
|
|
740
746
|
|
|
741
747
|
<span class='comment'># No controller gave a useful result:
|
|
742
748
|
</span> <span class='kw'>return</span> <span class='kw'>nil</span>
|
|
743
|
-
<span class='kw'>end</span></pre>
|
|
744
|
-
</td>
|
|
745
|
-
</tr>
|
|
746
|
-
</table>
|
|
747
|
-
</div>
|
|
748
|
-
|
|
749
|
-
<div class="method_details ">
|
|
750
|
-
<h3 class="signature " id="load_controller_file-instance_method">
|
|
751
|
-
|
|
752
|
-
#<strong>load_controller_file</strong>(uri_path) ⇒ <tt>Object</tt>
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
</h3><div class="docstring">
|
|
759
|
-
<div class="discussion">
|
|
749
|
+
<span class='kw'>end</span></pre>
|
|
750
|
+
</td>
|
|
751
|
+
</tr>
|
|
752
|
+
</table>
|
|
753
|
+
</div>
|
|
754
|
+
|
|
755
|
+
<div class="method_details ">
|
|
756
|
+
<h3 class="signature " id="load_controller_file-instance_method">
|
|
757
|
+
|
|
758
|
+
#<strong>load_controller_file</strong>(uri_path) ⇒ <tt>Object</tt>
|
|
759
|
+
|
|
760
|
+
|
|
761
|
+
|
|
762
|
+
|
|
763
|
+
|
|
764
|
+
</h3><div class="docstring">
|
|
765
|
+
<div class="discussion">
|
|
760
766
|
<p>Loads the controller file for the given relative url_path.</p>
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
</div>
|
|
764
|
-
</div>
|
|
765
|
-
<div class="tags">
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
</div><table class="source_code">
|
|
769
|
-
<tr>
|
|
770
|
-
<td>
|
|
767
|
+
|
|
768
|
+
|
|
769
|
+
</div>
|
|
770
|
+
</div>
|
|
771
|
+
<div class="tags">
|
|
772
|
+
|
|
773
|
+
|
|
774
|
+
</div><table class="source_code">
|
|
775
|
+
<tr>
|
|
776
|
+
<td>
|
|
771
777
|
<pre class="lines">
|
|
772
778
|
|
|
773
779
|
|
|
@@ -801,9 +807,9 @@
|
|
|
801
807
|
114
|
|
802
808
|
115
|
|
803
809
|
116
|
|
804
|
-
117</pre>
|
|
805
|
-
</td>
|
|
806
|
-
<td>
|
|
810
|
+
117</pre>
|
|
811
|
+
</td>
|
|
812
|
+
<td>
|
|
807
813
|
<pre class="code"><span class="info file"># File 'lib/utopia/controller.rb', line 87</span>
|
|
808
814
|
|
|
809
815
|
<span class='kw'>def</span> <span class='id identifier rubyid_load_controller_file'>load_controller_file</span><span class='lparen'>(</span><span class='id identifier rubyid_uri_path'>uri_path</span><span class='rparen'>)</span>
|
|
@@ -836,34 +842,34 @@
|
|
|
836
842
|
<span class='kw'>else</span>
|
|
837
843
|
<span class='kw'>return</span> <span class='kw'>nil</span>
|
|
838
844
|
<span class='kw'>end</span>
|
|
839
|
-
<span class='kw'>end</span></pre>
|
|
840
|
-
</td>
|
|
841
|
-
</tr>
|
|
842
|
-
</table>
|
|
843
|
-
</div>
|
|
844
|
-
|
|
845
|
-
<div class="method_details ">
|
|
846
|
-
<h3 class="signature " id="lookup_controller-instance_method">
|
|
847
|
-
|
|
848
|
-
#<strong>lookup_controller</strong>(path) ⇒ <tt>Object</tt>
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
</h3><div class="docstring">
|
|
855
|
-
<div class="discussion">
|
|
845
|
+
<span class='kw'>end</span></pre>
|
|
846
|
+
</td>
|
|
847
|
+
</tr>
|
|
848
|
+
</table>
|
|
849
|
+
</div>
|
|
850
|
+
|
|
851
|
+
<div class="method_details ">
|
|
852
|
+
<h3 class="signature " id="lookup_controller-instance_method">
|
|
853
|
+
|
|
854
|
+
#<strong>lookup_controller</strong>(path) ⇒ <tt>Object</tt>
|
|
855
|
+
|
|
856
|
+
|
|
857
|
+
|
|
858
|
+
|
|
859
|
+
|
|
860
|
+
</h3><div class="docstring">
|
|
861
|
+
<div class="discussion">
|
|
856
862
|
<p>Fetch the controller for the given relative path. May be cached.</p>
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
</div>
|
|
860
|
-
</div>
|
|
861
|
-
<div class="tags">
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
</div><table class="source_code">
|
|
865
|
-
<tr>
|
|
866
|
-
<td>
|
|
863
|
+
|
|
864
|
+
|
|
865
|
+
</div>
|
|
866
|
+
</div>
|
|
867
|
+
<div class="tags">
|
|
868
|
+
|
|
869
|
+
|
|
870
|
+
</div><table class="source_code">
|
|
871
|
+
<tr>
|
|
872
|
+
<td>
|
|
867
873
|
<pre class="lines">
|
|
868
874
|
|
|
869
875
|
|
|
@@ -871,31 +877,31 @@
|
|
|
871
877
|
81
|
|
872
878
|
82
|
|
873
879
|
83
|
|
874
|
-
84</pre>
|
|
875
|
-
</td>
|
|
876
|
-
<td>
|
|
880
|
+
84</pre>
|
|
881
|
+
</td>
|
|
882
|
+
<td>
|
|
877
883
|
<pre class="code"><span class="info file"># File 'lib/utopia/controller.rb', line 80</span>
|
|
878
884
|
|
|
879
885
|
<span class='kw'>def</span> <span class='id identifier rubyid_lookup_controller'>lookup_controller</span><span class='lparen'>(</span><span class='id identifier rubyid_path'>path</span><span class='rparen'>)</span>
|
|
880
886
|
<span class='ivar'>@controller_cache</span><span class='period'>.</span><span class='id identifier rubyid_fetch_or_store'>fetch_or_store</span><span class='lparen'>(</span><span class='id identifier rubyid_path'>path</span><span class='period'>.</span><span class='id identifier rubyid_to_s'>to_s</span><span class='rparen'>)</span> <span class='kw'>do</span>
|
|
881
887
|
<span class='id identifier rubyid_load_controller_file'>load_controller_file</span><span class='lparen'>(</span><span class='id identifier rubyid_path'>path</span><span class='rparen'>)</span>
|
|
882
888
|
<span class='kw'>end</span>
|
|
883
|
-
<span class='kw'>end</span></pre>
|
|
884
|
-
</td>
|
|
885
|
-
</tr>
|
|
886
|
-
</table>
|
|
887
|
-
</div>
|
|
888
|
-
|
|
889
|
-
</div>
|
|
890
|
-
|
|
891
|
-
</div>
|
|
892
|
-
|
|
893
|
-
<div id="footer">
|
|
894
|
-
Generated on Sat Mar
|
|
895
|
-
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
896
|
-
0.9.
|
|
897
|
-
</div>
|
|
898
|
-
|
|
899
|
-
</div>
|
|
900
|
-
</body>
|
|
889
|
+
<span class='kw'>end</span></pre>
|
|
890
|
+
</td>
|
|
891
|
+
</tr>
|
|
892
|
+
</table>
|
|
893
|
+
</div>
|
|
894
|
+
|
|
895
|
+
</div>
|
|
896
|
+
|
|
897
|
+
</div>
|
|
898
|
+
|
|
899
|
+
<div id="footer">
|
|
900
|
+
Generated on Sat Mar 9 12:01:53 2019 by
|
|
901
|
+
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
902
|
+
0.9.18 (ruby-2.6.1).
|
|
903
|
+
</div>
|
|
904
|
+
|
|
905
|
+
</div>
|
|
906
|
+
</body>
|
|
901
907
|
</html>
|