utopia 2.5.5 → 2.6.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (117) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +1 -2
  3. data/Gemfile +1 -0
  4. data/Rakefile +2 -0
  5. data/docs/code/Utopia.html +439 -433
  6. data/docs/code/Utopia/Command.html +201 -195
  7. data/docs/code/Utopia/Command/Environment.html +244 -244
  8. data/docs/code/Utopia/Command/Server.html +202 -202
  9. data/docs/code/Utopia/Command/Server/Create.html +192 -192
  10. data/docs/code/Utopia/Command/Server/Update.html +235 -235
  11. data/docs/code/Utopia/Command/Site.html +269 -263
  12. data/docs/code/Utopia/Command/Site/Create.html +192 -192
  13. data/docs/code/Utopia/Command/Site/Update.html +246 -246
  14. data/docs/code/Utopia/Command/Top.html +244 -244
  15. data/docs/code/Utopia/Content.html +636 -630
  16. data/docs/code/Utopia/Content/Document.html +1411 -1407
  17. data/docs/code/Utopia/Content/Document/State.html +1048 -1048
  18. data/docs/code/Utopia/Content/Link.html +1023 -1023
  19. data/docs/code/Utopia/Content/Links.html +629 -623
  20. data/docs/code/Utopia/Content/MarkupParser.html +702 -702
  21. data/docs/code/Utopia/Content/MarkupParser/ParsedTag.html +375 -375
  22. data/docs/code/Utopia/Content/MarkupParser/UnbalancedTagError.html +523 -523
  23. data/docs/code/Utopia/Content/Namespace.html +416 -416
  24. data/docs/code/Utopia/Content/Node.html +952 -952
  25. data/docs/code/Utopia/Content/Node/Context.html +790 -790
  26. data/docs/code/Utopia/Content/Response.html +686 -686
  27. data/docs/code/Utopia/Content/SymbolicHash.html +365 -365
  28. data/docs/code/Utopia/Content/Tags.html +134 -134
  29. data/docs/code/Utopia/Content/UnbalancedTagError.html +270 -270
  30. data/docs/code/Utopia/ContentLength.html +298 -294
  31. data/docs/code/Utopia/Controller.html +657 -651
  32. data/docs/code/Utopia/Controller/Actions.html +260 -260
  33. data/docs/code/Utopia/Controller/Actions/Action.html +785 -779
  34. data/docs/code/Utopia/Controller/Actions/ClassMethods.html +360 -360
  35. data/docs/code/Utopia/Controller/Base.html +989 -989
  36. data/docs/code/Utopia/Controller/Respond.html +264 -254
  37. data/docs/code/Utopia/Controller/Respond/ClassMethods.html +207 -207
  38. data/docs/code/Utopia/Controller/Respond/Converter.html +219 -219
  39. data/docs/code/Utopia/Controller/Respond/Converter/Callback.html +425 -425
  40. data/docs/code/Utopia/Controller/Respond/Converter/ToJSON.html +323 -317
  41. data/docs/code/Utopia/Controller/Respond/Passthrough.html +266 -260
  42. data/docs/code/Utopia/Controller/Respond/Responder.html +449 -443
  43. data/docs/code/Utopia/Controller/Rewrite.html +260 -260
  44. data/docs/code/Utopia/Controller/Rewrite/ClassMethods.html +216 -216
  45. data/docs/code/Utopia/Controller/Rewrite/ExtractPrefixRule.html +303 -303
  46. data/docs/code/Utopia/Controller/Rewrite/Rewriter.html +402 -402
  47. data/docs/code/Utopia/Controller/Rewrite/Rule.html +193 -193
  48. data/docs/code/Utopia/Controller/Variables.html +428 -428
  49. data/docs/code/Utopia/Controllers.html +216 -216
  50. data/docs/code/Utopia/Exceptions.html +125 -125
  51. data/docs/code/Utopia/Exceptions/Handler.html +405 -405
  52. data/docs/code/Utopia/Exceptions/Mailer.html +400 -394
  53. data/docs/code/Utopia/Extensions.html +116 -116
  54. data/docs/code/Utopia/Extensions/ArraySplit.html +164 -164
  55. data/docs/code/Utopia/Extensions/DateTimeComparison.html +173 -173
  56. data/docs/code/Utopia/Extensions/TimeDateComparison.html +173 -173
  57. data/docs/code/Utopia/HTTP.html +193 -187
  58. data/docs/code/Utopia/HTTP/Status.html +355 -355
  59. data/docs/code/Utopia/Locale.html +522 -522
  60. data/docs/code/Utopia/Localization.html +886 -880
  61. data/docs/code/Utopia/Localization/Wrapper.html +403 -403
  62. data/docs/code/Utopia/Logger.html +185 -185
  63. data/docs/code/Utopia/Logger/CompactFormatter.html +290 -290
  64. data/docs/code/Utopia/Path.html +2562 -2556
  65. data/docs/code/Utopia/Path/Matcher.html +395 -395
  66. data/docs/code/Utopia/Path/Matcher/MatchData.html +418 -418
  67. data/docs/code/Utopia/Redirection.html +148 -142
  68. data/docs/code/Utopia/Redirection/ClientRedirect.html +594 -594
  69. data/docs/code/Utopia/Redirection/DirectoryIndex.html +265 -265
  70. data/docs/code/Utopia/Redirection/Errors.html +391 -385
  71. data/docs/code/Utopia/Redirection/Moved.html +265 -265
  72. data/docs/code/Utopia/Redirection/RequestFailure.html +201 -201
  73. data/docs/code/Utopia/Redirection/Rewrite.html +265 -265
  74. data/docs/code/Utopia/Session.html +723 -717
  75. data/docs/code/Utopia/Session/LazyHash.html +709 -709
  76. data/docs/code/Utopia/Setup.html +783 -777
  77. data/docs/code/Utopia/Static.html +516 -510
  78. data/docs/code/Utopia/Static/LocalFile.html +875 -869
  79. data/docs/code/Utopia/Static/MimeTypeLoader.html +427 -427
  80. data/docs/code/Utopia/Static/MimeTypeLoader/ExpansionError.html +123 -123
  81. data/docs/code/_index.html +757 -757
  82. data/docs/code/class_list.html +51 -51
  83. data/docs/code/css/full_list.css +58 -58
  84. data/docs/code/css/style.css +496 -499
  85. data/docs/code/file.README.html +72 -70
  86. data/docs/code/file_list.html +56 -56
  87. data/docs/code/frames.html +17 -17
  88. data/docs/code/index.html +72 -70
  89. data/docs/code/js/app.js +292 -248
  90. data/docs/code/js/full_list.js +216 -216
  91. data/docs/code/js/jquery.js +3 -3
  92. data/docs/code/method_list.html +3443 -3443
  93. data/docs/code/top-level-namespace.html +109 -109
  94. data/docs/index.html +2 -2
  95. data/docs/wiki.html +2 -2
  96. data/docs/wiki/edit.html +1 -1
  97. data/docs/wiki/javascript.html +153 -0
  98. data/docs/wiki/javascript/index.html +153 -0
  99. data/documentation/.yarnrc +1 -0
  100. data/documentation/Gemfile +1 -0
  101. data/documentation/config/environment.rb +1 -0
  102. data/documentation/pages/wiki/content.md +1 -1
  103. data/documentation/pages/wiki/javascript/content.md +75 -0
  104. data/documentation/pages/wiki/links.yaml +3 -1
  105. data/lib/utopia/command/site.rb +4 -4
  106. data/lib/utopia/version.rb +1 -1
  107. data/setup/site/.yarnrc +1 -0
  108. data/setup/site/tasks/yarn.rake +32 -0
  109. data/spec/utopia/command_spec.rb +2 -2
  110. metadata +8 -9
  111. data/docs/wiki/bower-integration.html +0 -74
  112. data/docs/wiki/bower-integration/index.html +0 -74
  113. data/documentation/.bowerrc +0 -4
  114. data/documentation/pages/wiki/bower-integration/content.md +0 -25
  115. data/setup/.bowerrc +0 -3
  116. data/setup/site/.bowerrc +0 -4
  117. data/setup/site/tasks/bower.rake +0 -45
@@ -1,578 +1,584 @@
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::Localization
8
-
9
- &mdash; Documentation by YARD 0.9.12
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::Localization";
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 (L)</a> &raquo;
40
- <span class='title'><span class='object_link'><a href="../Utopia.html" title="Utopia (module)">Utopia</a></span></span>
41
- &raquo;
42
- <span class="title">Localization</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::Localization
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::Localization</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/localization.rb</dd>
98
- </dl>
99
-
100
- </div>
101
-
102
- <h2>Overview</h2><div class="docstring">
103
- <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::Localization
8
+
9
+ &mdash; 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::Localization";
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 (L)</a> &raquo;
40
+ <span class='title'><span class='object_link'><a href="../Utopia.html" title="Utopia (module)">Utopia</a></span></span>
41
+ &raquo;
42
+ <span class="title">Localization</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::Localization
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::Localization</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/localization.rb</dd>
98
+ </dl>
99
+
100
+ </div>
101
+
102
+ <h2>Overview</h2><div class="docstring">
103
+ <div class="discussion">
104
104
  <p>A middleware which attempts to find localized content.</p>
105
-
106
-
107
- </div>
108
- </div>
109
- <div class="tags">
110
-
111
-
112
- </div><h2>Defined Under Namespace</h2>
113
- <p class="children">
114
-
115
-
116
-
117
-
118
- <strong class="classes">Classes:</strong> <span class='object_link'><a href="Localization/Wrapper.html" title="Utopia::Localization::Wrapper (class)">Wrapper</a></span>
119
-
120
-
121
- </p>
122
-
123
- <h2>Constant Summary</h2>
124
- <dl class="constants">
125
-
126
- <dt id="RESOURCE_NOT_FOUND-constant" class="">RESOURCE_NOT_FOUND =
127
-
128
- </dt>
129
- <dd><pre class="code"><span class='lbracket'>[</span><span class='int'>400</span><span class='comma'>,</span> <span class='lbrace'>{</span><span class='rbrace'>}</span><span class='comma'>,</span> <span class='lbracket'>[</span><span class='rbracket'>]</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_freeze'>freeze</span></pre></dd>
130
-
131
- <dt id="HTTP_ACCEPT_LANGUAGE-constant" class="">HTTP_ACCEPT_LANGUAGE =
132
-
133
- </dt>
134
- <dd><pre class="code"><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>HTTP_ACCEPT_LANGUAGE</span><span class='tstring_end'>&#39;</span></span><span class='period'>.</span><span class='id identifier rubyid_freeze'>freeze</span></pre></dd>
135
-
136
- <dt id="LOCALIZATION_KEY-constant" class="">LOCALIZATION_KEY =
137
-
138
- </dt>
139
- <dd><pre class="code"><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>utopia.localization</span><span class='tstring_end'>&#39;</span></span><span class='period'>.</span><span class='id identifier rubyid_freeze'>freeze</span></pre></dd>
140
-
141
- <dt id="CURRENT_LOCALE_KEY-constant" class="">CURRENT_LOCALE_KEY =
142
-
143
- </dt>
144
- <dd><pre class="code"><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>utopia.localization.current_locale</span><span class='tstring_end'>&#39;</span></span><span class='period'>.</span><span class='id identifier rubyid_freeze'>freeze</span></pre></dd>
145
-
146
- <dt id="SAFE_METHODS-constant" class="">SAFE_METHODS =
147
-
148
- </dt>
149
- <dd><pre class="code"><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>GET</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>HEAD</span><span class='tstring_end'>&#39;</span></span><span class='rbracket'>]</span></pre></dd>
150
-
151
- </dl>
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="#all_locales-instance_method" title="#all_locales (instance method)">#<strong>all_locales</strong> &#x21d2; 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
-
105
+
106
+
107
+ </div>
108
+ </div>
109
+ <div class="tags">
110
+
111
+
112
+ </div><h2>Defined Under Namespace</h2>
113
+ <p class="children">
114
+
115
+
116
+
117
+
118
+ <strong class="classes">Classes:</strong> <span class='object_link'><a href="Localization/Wrapper.html" title="Utopia::Localization::Wrapper (class)">Wrapper</a></span>
119
+
120
+
121
+ </p>
122
+
123
+
124
+ <h2>
125
+ Constant Summary
126
+ <small><a href="#" class="constants_summary_toggle">collapse</a></small>
127
+ </h2>
128
+
129
+ <dl class="constants">
130
+
131
+ <dt id="RESOURCE_NOT_FOUND-constant" class="">RESOURCE_NOT_FOUND =
132
+
133
+ </dt>
134
+ <dd><pre class="code"><span class='lbracket'>[</span><span class='int'>400</span><span class='comma'>,</span> <span class='lbrace'>{</span><span class='rbrace'>}</span><span class='comma'>,</span> <span class='lbracket'>[</span><span class='rbracket'>]</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_freeze'>freeze</span></pre></dd>
135
+
136
+ <dt id="HTTP_ACCEPT_LANGUAGE-constant" class="">HTTP_ACCEPT_LANGUAGE =
137
+
138
+ </dt>
139
+ <dd><pre class="code"><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>HTTP_ACCEPT_LANGUAGE</span><span class='tstring_end'>&#39;</span></span><span class='period'>.</span><span class='id identifier rubyid_freeze'>freeze</span></pre></dd>
140
+
141
+ <dt id="LOCALIZATION_KEY-constant" class="">LOCALIZATION_KEY =
142
+
143
+ </dt>
144
+ <dd><pre class="code"><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>utopia.localization</span><span class='tstring_end'>&#39;</span></span><span class='period'>.</span><span class='id identifier rubyid_freeze'>freeze</span></pre></dd>
145
+
146
+ <dt id="CURRENT_LOCALE_KEY-constant" class="">CURRENT_LOCALE_KEY =
147
+
148
+ </dt>
149
+ <dd><pre class="code"><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>utopia.localization.current_locale</span><span class='tstring_end'>&#39;</span></span><span class='period'>.</span><span class='id identifier rubyid_freeze'>freeze</span></pre></dd>
150
+
151
+ <dt id="SAFE_METHODS-constant" class="">SAFE_METHODS =
152
+
153
+ </dt>
154
+ <dd><pre class="code"><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>GET</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>HEAD</span><span class='tstring_end'>&#39;</span></span><span class='rbracket'>]</span></pre></dd>
155
+
156
+ </dl>
157
+
158
+
159
+
160
+
161
+
162
+ <h2>Instance Attribute Summary <small><a href="#" class="summary_toggle">collapse</a></small></h2>
163
+ <ul class="summary">
164
+
165
+ <li class="public ">
166
+ <span class="summary_signature">
167
+
168
+ <a href="#all_locales-instance_method" title="#all_locales (instance method)">#<strong>all_locales</strong> &#x21d2; Object </a>
169
+
170
+
171
+
172
+ </span>
173
+
174
+
175
+
176
+
177
+ <span class="note title readonly">readonly</span>
178
+
179
+
180
+
181
+
182
+
183
+
184
+
185
+
186
+
181
187
  <span class="summary_desc"><div class='inline'><p>Returns the value of attribute all_locales.</p>
182
- </div></span>
183
-
184
- </li>
185
-
186
-
187
- <li class="public ">
188
- <span class="summary_signature">
189
-
190
- <a href="#default_locale-instance_method" title="#default_locale (instance method)">#<strong>default_locale</strong> &#x21d2; Object </a>
191
-
192
-
193
-
194
- </span>
195
-
196
-
197
-
198
-
199
- <span class="note title readonly">readonly</span>
200
-
201
-
202
-
203
-
204
-
205
-
206
-
207
-
208
-
188
+ </div></span>
189
+
190
+ </li>
191
+
192
+
193
+ <li class="public ">
194
+ <span class="summary_signature">
195
+
196
+ <a href="#default_locale-instance_method" title="#default_locale (instance method)">#<strong>default_locale</strong> &#x21d2; Object </a>
197
+
198
+
199
+
200
+ </span>
201
+
202
+
203
+
204
+
205
+ <span class="note title readonly">readonly</span>
206
+
207
+
208
+
209
+
210
+
211
+
212
+
213
+
214
+
209
215
  <span class="summary_desc"><div class='inline'><p>Returns the value of attribute default_locale.</p>
210
- </div></span>
211
-
212
- </li>
213
-
214
-
215
- </ul>
216
-
217
-
218
-
219
-
220
-
221
- <h2>
222
- Class Method Summary
223
- <small><a href="#" class="summary_toggle">collapse</a></small>
224
- </h2>
225
-
226
- <ul class="summary">
227
-
228
- <li class="public ">
229
- <span class="summary_signature">
230
-
231
- <a href="#[]-class_method" title="[] (class method)">.<strong>[]</strong>(request) &#x21d2; Object </a>
232
-
233
-
234
-
235
- </span>
236
-
237
-
238
-
239
-
240
-
241
-
242
-
243
-
244
-
216
+ </div></span>
217
+
218
+ </li>
219
+
220
+
221
+ </ul>
222
+
223
+
224
+
225
+
226
+
227
+ <h2>
228
+ Class Method Summary
229
+ <small><a href="#" class="summary_toggle">collapse</a></small>
230
+ </h2>
231
+
232
+ <ul class="summary">
233
+
234
+ <li class="public ">
235
+ <span class="summary_signature">
236
+
237
+ <a href="#[]-class_method" title="[] (class method)">.<strong>[]</strong>(request) &#x21d2; Object </a>
238
+
239
+
240
+
241
+ </span>
242
+
243
+
244
+
245
+
246
+
247
+
248
+
249
+
250
+
245
251
  <span class="summary_desc"><div class='inline'>
246
- </div></span>
247
-
248
- </li>
249
-
250
-
251
- </ul>
252
-
253
- <h2>
254
- Instance Method Summary
255
- <small><a href="#" class="summary_toggle">collapse</a></small>
256
- </h2>
257
-
258
- <ul class="summary">
259
-
260
- <li class="public ">
261
- <span class="summary_signature">
262
-
263
- <a href="#browser_preferred_locales-instance_method" title="#browser_preferred_locales (instance method)">#<strong>browser_preferred_locales</strong>(env) &#x21d2; Object </a>
264
-
265
-
266
-
267
- </span>
268
-
269
-
270
-
271
-
272
-
273
-
274
-
275
-
276
-
252
+ </div></span>
253
+
254
+ </li>
255
+
256
+
257
+ </ul>
258
+
259
+ <h2>
260
+ Instance Method Summary
261
+ <small><a href="#" class="summary_toggle">collapse</a></small>
262
+ </h2>
263
+
264
+ <ul class="summary">
265
+
266
+ <li class="public ">
267
+ <span class="summary_signature">
268
+
269
+ <a href="#browser_preferred_locales-instance_method" title="#browser_preferred_locales (instance method)">#<strong>browser_preferred_locales</strong>(env) &#x21d2; Object </a>
270
+
271
+
272
+
273
+ </span>
274
+
275
+
276
+
277
+
278
+
279
+
280
+
281
+
282
+
277
283
  <span class="summary_desc"><div class='inline'>
278
- </div></span>
279
-
280
- </li>
281
-
282
-
283
- <li class="public ">
284
- <span class="summary_signature">
285
-
286
- <a href="#call-instance_method" title="#call (instance method)">#<strong>call</strong>(env) &#x21d2; Object </a>
287
-
288
-
289
-
290
- </span>
291
-
292
-
293
-
294
-
295
-
296
-
297
-
298
-
299
-
284
+ </div></span>
285
+
286
+ </li>
287
+
288
+
289
+ <li class="public ">
290
+ <span class="summary_signature">
291
+
292
+ <a href="#call-instance_method" title="#call (instance method)">#<strong>call</strong>(env) &#x21d2; Object </a>
293
+
294
+
295
+
296
+ </span>
297
+
298
+
299
+
300
+
301
+
302
+
303
+
304
+
305
+
300
306
  <span class="summary_desc"><div class='inline'>
301
- </div></span>
302
-
303
- </li>
304
-
305
-
306
- <li class="public ">
307
- <span class="summary_signature">
308
-
309
- <a href="#freeze-instance_method" title="#freeze (instance method)">#<strong>freeze</strong> &#x21d2; Object </a>
310
-
311
-
312
-
313
- </span>
314
-
315
-
316
-
317
-
318
-
319
-
320
-
321
-
322
-
307
+ </div></span>
308
+
309
+ </li>
310
+
311
+
312
+ <li class="public ">
313
+ <span class="summary_signature">
314
+
315
+ <a href="#freeze-instance_method" title="#freeze (instance method)">#<strong>freeze</strong> &#x21d2; Object </a>
316
+
317
+
318
+
319
+ </span>
320
+
321
+
322
+
323
+
324
+
325
+
326
+
327
+
328
+
323
329
  <span class="summary_desc"><div class='inline'>
324
- </div></span>
325
-
326
- </li>
327
-
328
-
329
- <li class="public ">
330
- <span class="summary_signature">
331
-
332
- <a href="#host_preferred_locales-instance_method" title="#host_preferred_locales (instance method)">#<strong>host_preferred_locales</strong>(env) &#x21d2; Object </a>
333
-
334
-
335
-
336
- </span>
337
-
338
-
339
-
340
-
341
-
342
-
343
-
344
-
345
-
330
+ </div></span>
331
+
332
+ </li>
333
+
334
+
335
+ <li class="public ">
336
+ <span class="summary_signature">
337
+
338
+ <a href="#host_preferred_locales-instance_method" title="#host_preferred_locales (instance method)">#<strong>host_preferred_locales</strong>(env) &#x21d2; Object </a>
339
+
340
+
341
+
342
+ </span>
343
+
344
+
345
+
346
+
347
+
348
+
349
+
350
+
351
+
346
352
  <span class="summary_desc"><div class='inline'>
347
- </div></span>
348
-
349
- </li>
350
-
351
-
352
- <li class="public ">
353
- <span class="summary_signature">
354
-
355
- <a href="#initialize-instance_method" title="#initialize (instance method)">#<strong>initialize</strong>(app, locales:, default_locale: nil, default_locales: nil, hosts: {}, ignore: [], **options) &#x21d2; Localization </a>
356
-
357
-
358
-
359
- </span>
360
-
361
-
362
- <span class="note title constructor">constructor</span>
363
-
364
-
365
-
366
-
367
-
368
-
369
-
370
-
353
+ </div></span>
354
+
355
+ </li>
356
+
357
+
358
+ <li class="public ">
359
+ <span class="summary_signature">
360
+
361
+ <a href="#initialize-instance_method" title="#initialize (instance method)">#<strong>initialize</strong>(app, locales:, default_locale: nil, default_locales: nil, hosts: {}, ignore: [], **options) &#x21d2; Localization </a>
362
+
363
+
364
+
365
+ </span>
366
+
367
+
368
+ <span class="note title constructor">constructor</span>
369
+
370
+
371
+
372
+
373
+
374
+
375
+
376
+
371
377
  <span class="summary_desc"><div class='inline'><p>A new instance of Localization.</p>
372
- </div></span>
373
-
374
- </li>
375
-
376
-
377
- <li class="public ">
378
- <span class="summary_signature">
379
-
380
- <a href="#localized%3F-instance_method" title="#localized? (instance method)">#<strong>localized?</strong>(env) &#x21d2; Boolean </a>
381
-
382
-
383
-
384
- </span>
385
-
386
-
387
-
388
-
389
-
390
-
391
-
392
-
393
-
378
+ </div></span>
379
+
380
+ </li>
381
+
382
+
383
+ <li class="public ">
384
+ <span class="summary_signature">
385
+
386
+ <a href="#localized%3F-instance_method" title="#localized? (instance method)">#<strong>localized?</strong>(env) &#x21d2; Boolean </a>
387
+
388
+
389
+
390
+ </span>
391
+
392
+
393
+
394
+
395
+
396
+
397
+
398
+
399
+
394
400
  <span class="summary_desc"><div class='inline'>
395
- </div></span>
396
-
397
- </li>
398
-
399
-
400
- <li class="public ">
401
- <span class="summary_signature">
402
-
403
- <a href="#preferred_locales-instance_method" title="#preferred_locales (instance method)">#<strong>preferred_locales</strong>(env) &#x21d2; Object </a>
404
-
405
-
406
-
407
- </span>
408
-
409
-
410
-
411
-
412
-
413
-
414
-
415
-
416
-
401
+ </div></span>
402
+
403
+ </li>
404
+
405
+
406
+ <li class="public ">
407
+ <span class="summary_signature">
408
+
409
+ <a href="#preferred_locales-instance_method" title="#preferred_locales (instance method)">#<strong>preferred_locales</strong>(env) &#x21d2; Object </a>
410
+
411
+
412
+
413
+ </span>
414
+
415
+
416
+
417
+
418
+
419
+
420
+
421
+
422
+
417
423
  <span class="summary_desc"><div class='inline'>
418
- </div></span>
419
-
420
- </li>
421
-
422
-
423
- <li class="public ">
424
- <span class="summary_signature">
425
-
426
- <a href="#request_preferred_locale-instance_method" title="#request_preferred_locale (instance method)">#<strong>request_preferred_locale</strong>(env) &#x21d2; Object </a>
427
-
428
-
429
-
430
- </span>
431
-
432
-
433
-
434
-
435
-
436
-
437
-
438
-
439
-
424
+ </div></span>
425
+
426
+ </li>
427
+
428
+
429
+ <li class="public ">
430
+ <span class="summary_signature">
431
+
432
+ <a href="#request_preferred_locale-instance_method" title="#request_preferred_locale (instance method)">#<strong>request_preferred_locale</strong>(env) &#x21d2; Object </a>
433
+
434
+
435
+
436
+ </span>
437
+
438
+
439
+
440
+
441
+
442
+
443
+
444
+
445
+
440
446
  <span class="summary_desc"><div class='inline'>
441
- </div></span>
442
-
443
- </li>
444
-
445
-
446
- <li class="public ">
447
- <span class="summary_signature">
448
-
449
- <a href="#vary-instance_method" title="#vary (instance method)">#<strong>vary</strong>(env, response) &#x21d2; Object </a>
450
-
451
-
452
-
453
- </span>
454
-
455
-
456
-
457
-
458
-
459
-
460
-
461
-
462
-
447
+ </div></span>
448
+
449
+ </li>
450
+
451
+
452
+ <li class="public ">
453
+ <span class="summary_signature">
454
+
455
+ <a href="#vary-instance_method" title="#vary (instance method)">#<strong>vary</strong>(env, response) &#x21d2; Object </a>
456
+
457
+
458
+
459
+ </span>
460
+
461
+
462
+
463
+
464
+
465
+
466
+
467
+
468
+
463
469
  <span class="summary_desc"><div class='inline'><p>Set the Vary: header on the response to indicate that this response should include the header in the cache key.</p>
464
- </div></span>
465
-
466
- </li>
467
-
468
-
469
- </ul>
470
-
471
-
472
- <div id="constructor_details" class="method_details_list">
473
- <h2>Constructor Details</h2>
474
-
475
- <div class="method_details first">
476
- <h3 class="signature first" id="initialize-instance_method">
477
-
478
- #<strong>initialize</strong>(app, locales:, default_locale: nil, default_locales: nil, hosts: {}, ignore: [], **options) &#x21d2; <tt><span class='object_link'><a href="" title="Utopia::Localization (class)">Localization</a></span></tt>
479
-
480
-
481
-
482
-
483
-
484
- </h3><div class="docstring">
485
- <div class="discussion">
470
+ </div></span>
471
+
472
+ </li>
473
+
474
+
475
+ </ul>
476
+
477
+
478
+ <div id="constructor_details" class="method_details_list">
479
+ <h2>Constructor Details</h2>
480
+
481
+ <div class="method_details first">
482
+ <h3 class="signature first" id="initialize-instance_method">
483
+
484
+ #<strong>initialize</strong>(app, locales:, default_locale: nil, default_locales: nil, hosts: {}, ignore: [], **options) &#x21d2; <tt><span class='object_link'><a href="" title="Utopia::Localization (class)">Localization</a></span></tt>
485
+
486
+
487
+
488
+
489
+
490
+ </h3><div class="docstring">
491
+ <div class="discussion">
486
492
  <p>Returns a new instance of Localization</p>
487
-
488
-
489
- </div>
490
- </div>
491
- <div class="tags">
492
- <p class="tag_title">Parameters:</p>
493
- <ul class="param">
494
-
495
- <li>
496
-
497
- <span class='name'>locales</span>
498
-
499
-
500
- <span class='type'>(<tt>Array&lt;String&gt;</tt>)</span>
501
-
502
-
503
-
504
- &mdash;
493
+
494
+
495
+ </div>
496
+ </div>
497
+ <div class="tags">
498
+ <p class="tag_title">Parameters:</p>
499
+ <ul class="param">
500
+
501
+ <li>
502
+
503
+ <span class='name'>locales</span>
504
+
505
+
506
+ <span class='type'>(<tt>Array&lt;String&gt;</tt>)</span>
507
+
508
+
509
+
510
+ &mdash;
505
511
  <div class='inline'><p>An array of all supported locales.</p>
506
- </div>
507
-
508
- </li>
509
-
510
- <li>
511
-
512
- <span class='name'>default_locale</span>
513
-
514
-
515
- <span class='type'>(<tt>String</tt>)</span>
516
-
517
-
518
-
519
- &mdash;
512
+ </div>
513
+
514
+ </li>
515
+
516
+ <li>
517
+
518
+ <span class='name'>default_locale</span>
519
+
520
+
521
+ <span class='type'>(<tt>String</tt>)</span>
522
+
523
+
524
+
525
+ &mdash;
520
526
  <div class='inline'><p>The default locale if none is provided.</p>
521
- </div>
522
-
523
- </li>
524
-
525
- <li>
526
-
527
- <span class='name'>default_locales</span>
528
-
529
-
530
- <span class='type'>(<tt>String</tt>)</span>
531
-
532
-
533
-
534
- &mdash;
527
+ </div>
528
+
529
+ </li>
530
+
531
+ <li>
532
+
533
+ <span class='name'>default_locales</span>
534
+
535
+
536
+ <span class='type'>(<tt>String</tt>)</span>
537
+
538
+
539
+
540
+ &mdash;
535
541
  <div class='inline'><p>The locales to try in order if none is provided.</p>
536
- </div>
537
-
538
- </li>
539
-
540
- <li>
541
-
542
- <span class='name'>hosts</span>
543
-
544
-
545
- <span class='type'>(<tt>Hash&lt;Pattern, String&gt;</tt>)</span>
546
-
547
-
548
-
549
- &mdash;
542
+ </div>
543
+
544
+ </li>
545
+
546
+ <li>
547
+
548
+ <span class='name'>hosts</span>
549
+
550
+
551
+ <span class='type'>(<tt>Hash&lt;Pattern, String&gt;</tt>)</span>
552
+
553
+
554
+
555
+ &mdash;
550
556
  <div class='inline'><p>Specify a mapping of the HTTP_HOST header to a given locale.</p>
551
- </div>
552
-
553
- </li>
554
-
555
- <li>
556
-
557
- <span class='name'>ignore</span>
558
-
559
-
560
- <span class='type'>(<tt>Array&lt;Pattern&gt;</tt>)</span>
561
-
562
-
563
-
564
- &mdash;
557
+ </div>
558
+
559
+ </li>
560
+
561
+ <li>
562
+
563
+ <span class='name'>ignore</span>
564
+
565
+
566
+ <span class='type'>(<tt>Array&lt;Pattern&gt;</tt>)</span>
567
+
568
+
569
+
570
+ &mdash;
565
571
  <div class='inline'><p>A list of patterns matched against PATH_INFO which will not be localized.</p>
566
- </div>
567
-
568
- </li>
569
-
570
- </ul>
571
-
572
-
573
- </div><table class="source_code">
574
- <tr>
575
- <td>
572
+ </div>
573
+
574
+ </li>
575
+
576
+ </ul>
577
+
578
+
579
+ </div><table class="source_code">
580
+ <tr>
581
+ <td>
576
582
  <pre class="lines">
577
583
 
578
584
 
@@ -597,9 +603,9 @@
597
603
  85
598
604
  86
599
605
  87
600
- 88</pre>
601
- </td>
602
- <td>
606
+ 88</pre>
607
+ </td>
608
+ <td>
603
609
  <pre class="code"><span class="info file"># File 'lib/utopia/localization.rb', line 67</span>
604
610
 
605
611
  <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'>locales:</span><span class='comma'>,</span> <span class='label'>default_locale:</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='label'>default_locales:</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='label'>hosts:</span> <span class='lbrace'>{</span><span class='rbrace'>}</span><span class='comma'>,</span> <span class='label'>ignore:</span> <span class='lbracket'>[</span><span class='rbracket'>]</span><span class='comma'>,</span> <span class='op'>**</span><span class='id identifier rubyid_options'>options</span><span class='rparen'>)</span>
@@ -623,156 +629,156 @@
623
629
  </span> <span class='ivar'>@hosts</span> <span class='op'>=</span> <span class='id identifier rubyid_hosts'>hosts</span>
624
630
 
625
631
  <span class='ivar'>@ignore</span> <span class='op'>=</span> <span class='id identifier rubyid_ignore'>ignore</span> <span class='op'>||</span> <span class='id identifier rubyid_options'>options</span><span class='lbracket'>[</span><span class='symbol'>:nonlocalized</span><span class='rbracket'>]</span>
626
- <span class='kw'>end</span></pre>
627
- </td>
628
- </tr>
629
- </table>
630
- </div>
631
-
632
- </div>
633
-
634
- <div id="instance_attr_details" class="attr_details">
635
- <h2>Instance Attribute Details</h2>
636
-
637
-
638
- <span id=""></span>
639
- <div class="method_details first">
640
- <h3 class="signature first" id="all_locales-instance_method">
641
-
642
- #<strong>all_locales</strong> &#x21d2; <tt>Object</tt> <span class="extras">(readonly)</span>
643
-
644
-
645
-
646
-
647
-
648
- </h3><div class="docstring">
649
- <div class="discussion">
632
+ <span class='kw'>end</span></pre>
633
+ </td>
634
+ </tr>
635
+ </table>
636
+ </div>
637
+
638
+ </div>
639
+
640
+ <div id="instance_attr_details" class="attr_details">
641
+ <h2>Instance Attribute Details</h2>
642
+
643
+
644
+ <span id=""></span>
645
+ <div class="method_details first">
646
+ <h3 class="signature first" id="all_locales-instance_method">
647
+
648
+ #<strong>all_locales</strong> &#x21d2; <tt>Object</tt> <span class="extras">(readonly)</span>
649
+
650
+
651
+
652
+
653
+
654
+ </h3><div class="docstring">
655
+ <div class="discussion">
650
656
  <p>Returns the value of attribute all_locales</p>
651
-
652
-
653
- </div>
654
- </div>
655
- <div class="tags">
656
-
657
-
658
- </div><table class="source_code">
659
- <tr>
660
- <td>
657
+
658
+
659
+ </div>
660
+ </div>
661
+ <div class="tags">
662
+
663
+
664
+ </div><table class="source_code">
665
+ <tr>
666
+ <td>
661
667
  <pre class="lines">
662
668
 
663
669
 
664
670
  102
665
671
  103
666
- 104</pre>
667
- </td>
668
- <td>
672
+ 104</pre>
673
+ </td>
674
+ <td>
669
675
  <pre class="code"><span class="info file"># File 'lib/utopia/localization.rb', line 102</span>
670
676
 
671
677
  <span class='kw'>def</span> <span class='id identifier rubyid_all_locales'>all_locales</span>
672
678
  <span class='ivar'>@all_locales</span>
673
- <span class='kw'>end</span></pre>
674
- </td>
675
- </tr>
676
- </table>
677
- </div>
678
-
679
-
680
- <span id=""></span>
681
- <div class="method_details ">
682
- <h3 class="signature " id="default_locale-instance_method">
683
-
684
- #<strong>default_locale</strong> &#x21d2; <tt>Object</tt> <span class="extras">(readonly)</span>
685
-
686
-
687
-
688
-
689
-
690
- </h3><div class="docstring">
691
- <div class="discussion">
679
+ <span class='kw'>end</span></pre>
680
+ </td>
681
+ </tr>
682
+ </table>
683
+ </div>
684
+
685
+
686
+ <span id=""></span>
687
+ <div class="method_details ">
688
+ <h3 class="signature " id="default_locale-instance_method">
689
+
690
+ #<strong>default_locale</strong> &#x21d2; <tt>Object</tt> <span class="extras">(readonly)</span>
691
+
692
+
693
+
694
+
695
+
696
+ </h3><div class="docstring">
697
+ <div class="discussion">
692
698
  <p>Returns the value of attribute default_locale</p>
693
-
694
-
695
- </div>
696
- </div>
697
- <div class="tags">
698
-
699
-
700
- </div><table class="source_code">
701
- <tr>
702
- <td>
699
+
700
+
701
+ </div>
702
+ </div>
703
+ <div class="tags">
704
+
705
+
706
+ </div><table class="source_code">
707
+ <tr>
708
+ <td>
703
709
  <pre class="lines">
704
710
 
705
711
 
706
712
  103
707
713
  104
708
- 105</pre>
709
- </td>
710
- <td>
714
+ 105</pre>
715
+ </td>
716
+ <td>
711
717
  <pre class="code"><span class="info file"># File 'lib/utopia/localization.rb', line 103</span>
712
718
 
713
719
  <span class='kw'>def</span> <span class='id identifier rubyid_default_locale'>default_locale</span>
714
720
  <span class='ivar'>@default_locale</span>
715
- <span class='kw'>end</span></pre>
716
- </td>
717
- </tr>
718
- </table>
719
- </div>
720
-
721
- </div>
722
-
723
-
724
- <div id="class_method_details" class="method_details_list">
725
- <h2>Class Method Details</h2>
726
-
727
-
728
- <div class="method_details first">
729
- <h3 class="signature first" id="[]-class_method">
730
-
731
- .<strong>[]</strong>(request) &#x21d2; <tt>Object</tt>
732
-
733
-
734
-
735
-
736
-
737
- </h3><table class="source_code">
738
- <tr>
739
- <td>
721
+ <span class='kw'>end</span></pre>
722
+ </td>
723
+ </tr>
724
+ </table>
725
+ </div>
726
+
727
+ </div>
728
+
729
+
730
+ <div id="class_method_details" class="method_details_list">
731
+ <h2>Class Method Details</h2>
732
+
733
+
734
+ <div class="method_details first">
735
+ <h3 class="signature first" id="[]-class_method">
736
+
737
+ .<strong>[]</strong>(request) &#x21d2; <tt>Object</tt>
738
+
739
+
740
+
741
+
742
+
743
+ </h3><table class="source_code">
744
+ <tr>
745
+ <td>
740
746
  <pre class="lines">
741
747
 
742
748
 
743
749
  52
744
750
  53
745
- 54</pre>
746
- </td>
747
- <td>
751
+ 54</pre>
752
+ </td>
753
+ <td>
748
754
  <pre class="code"><span class="info file"># File 'lib/utopia/localization.rb', line 52</span>
749
755
 
750
756
  <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>
751
757
  <span class='const'><span class='object_link'><a href="Localization/Wrapper.html" title="Utopia::Localization::Wrapper (class)">Wrapper</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="Localization/Wrapper.html#initialize-instance_method" title="Utopia::Localization::Wrapper#initialize (method)">new</a></span></span><span class='lparen'>(</span><span class='id identifier rubyid_request'>request</span><span class='period'>.</span><span class='id identifier rubyid_env'>env</span><span class='rparen'>)</span>
752
- <span class='kw'>end</span></pre>
753
- </td>
754
- </tr>
755
- </table>
756
- </div>
757
-
758
- </div>
759
-
760
- <div id="instance_method_details" class="method_details_list">
761
- <h2>Instance Method Details</h2>
762
-
763
-
764
- <div class="method_details first">
765
- <h3 class="signature first" id="browser_preferred_locales-instance_method">
766
-
767
- #<strong>browser_preferred_locales</strong>(env) &#x21d2; <tt>Object</tt>
768
-
769
-
770
-
771
-
772
-
773
- </h3><table class="source_code">
774
- <tr>
775
- <td>
758
+ <span class='kw'>end</span></pre>
759
+ </td>
760
+ </tr>
761
+ </table>
762
+ </div>
763
+
764
+ </div>
765
+
766
+ <div id="instance_method_details" class="method_details_list">
767
+ <h2>Instance Method Details</h2>
768
+
769
+
770
+ <div class="method_details first">
771
+ <h3 class="signature first" id="browser_preferred_locales-instance_method">
772
+
773
+ #<strong>browser_preferred_locales</strong>(env) &#x21d2; <tt>Object</tt>
774
+
775
+
776
+
777
+
778
+
779
+ </h3><table class="source_code">
780
+ <tr>
781
+ <td>
776
782
  <pre class="lines">
777
783
 
778
784
 
@@ -790,9 +796,9 @@
790
796
  162
791
797
  163
792
798
  164
793
- 165</pre>
794
- </td>
795
- <td>
799
+ 165</pre>
800
+ </td>
801
+ <td>
796
802
  <pre class="code"><span class="info file"># File 'lib/utopia/localization.rb', line 151</span>
797
803
 
798
804
  <span class='kw'>def</span> <span class='id identifier rubyid_browser_preferred_locales'>browser_preferred_locales</span><span class='lparen'>(</span><span class='id identifier rubyid_env'>env</span><span class='rparen'>)</span>
@@ -809,24 +815,24 @@
809
815
  <span class='kw'>rescue</span> <span class='const'><span class='object_link'><a href="HTTP.html" title="Utopia::HTTP (module)">HTTP</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="HTTP.html#Accept-constant" title="Utopia::HTTP::Accept (constant)">Accept</a></span></span><span class='op'>::</span><span class='const'>ParseError</span>
810
816
  <span class='comment'># If we fail to parse the browser Accept-Language header, we ignore it (silently).
811
817
  </span> <span class='kw'>return</span> <span class='lbracket'>[</span><span class='rbracket'>]</span>
812
- <span class='kw'>end</span></pre>
813
- </td>
814
- </tr>
815
- </table>
816
- </div>
817
-
818
- <div class="method_details ">
819
- <h3 class="signature " id="call-instance_method">
820
-
821
- #<strong>call</strong>(env) &#x21d2; <tt>Object</tt>
822
-
823
-
824
-
825
-
826
-
827
- </h3><table class="source_code">
828
- <tr>
829
- <td>
818
+ <span class='kw'>end</span></pre>
819
+ </td>
820
+ </tr>
821
+ </table>
822
+ </div>
823
+
824
+ <div class="method_details ">
825
+ <h3 class="signature " id="call-instance_method">
826
+
827
+ #<strong>call</strong>(env) &#x21d2; <tt>Object</tt>
828
+
829
+
830
+
831
+
832
+
833
+ </h3><table class="source_code">
834
+ <tr>
835
+ <td>
830
836
  <pre class="lines">
831
837
 
832
838
 
@@ -848,9 +854,9 @@
848
854
  216
849
855
  217
850
856
  218
851
- 219</pre>
852
- </td>
853
- <td>
857
+ 219</pre>
858
+ </td>
859
+ <td>
854
860
  <pre class="code"><span class="info file"># File 'lib/utopia/localization.rb', line 201</span>
855
861
 
856
862
  <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>
@@ -871,24 +877,24 @@
871
877
  <span class='kw'>end</span>
872
878
 
873
879
  <span class='kw'>return</span> <span class='id identifier rubyid_vary'>vary</span><span class='lparen'>(</span><span class='id identifier rubyid_env'>env</span><span class='comma'>,</span> <span class='id identifier rubyid_response'>response</span><span class='rparen'>)</span>
874
- <span class='kw'>end</span></pre>
875
- </td>
876
- </tr>
877
- </table>
878
- </div>
879
-
880
- <div class="method_details ">
881
- <h3 class="signature " id="freeze-instance_method">
882
-
883
- #<strong>freeze</strong> &#x21d2; <tt>Object</tt>
884
-
885
-
886
-
887
-
888
-
889
- </h3><table class="source_code">
890
- <tr>
891
- <td>
880
+ <span class='kw'>end</span></pre>
881
+ </td>
882
+ </tr>
883
+ </table>
884
+ </div>
885
+
886
+ <div class="method_details ">
887
+ <h3 class="signature " id="freeze-instance_method">
888
+
889
+ #<strong>freeze</strong> &#x21d2; <tt>Object</tt>
890
+
891
+
892
+
893
+
894
+
895
+ </h3><table class="source_code">
896
+ <tr>
897
+ <td>
892
898
  <pre class="lines">
893
899
 
894
900
 
@@ -902,9 +908,9 @@
902
908
  97
903
909
  98
904
910
  99
905
- 100</pre>
906
- </td>
907
- <td>
911
+ 100</pre>
912
+ </td>
913
+ <td>
908
914
  <pre class="code"><span class="info file"># File 'lib/utopia/localization.rb', line 90</span>
909
915
 
910
916
  <span class='kw'>def</span> <span class='id identifier rubyid_freeze'>freeze</span>
@@ -917,24 +923,24 @@
917
923
  <span class='ivar'>@ignore</span><span class='period'>.</span><span class='id identifier rubyid_freeze'>freeze</span>
918
924
 
919
925
  <span class='kw'>super</span>
920
- <span class='kw'>end</span></pre>
921
- </td>
922
- </tr>
923
- </table>
924
- </div>
925
-
926
- <div class="method_details ">
927
- <h3 class="signature " id="host_preferred_locales-instance_method">
928
-
929
- #<strong>host_preferred_locales</strong>(env) &#x21d2; <tt>Object</tt>
930
-
931
-
932
-
933
-
934
-
935
- </h3><table class="source_code">
936
- <tr>
937
- <td>
926
+ <span class='kw'>end</span></pre>
927
+ </td>
928
+ </tr>
929
+ </table>
930
+ </div>
931
+
932
+ <div class="method_details ">
933
+ <h3 class="signature " id="host_preferred_locales-instance_method">
934
+
935
+ #<strong>host_preferred_locales</strong>(env) &#x21d2; <tt>Object</tt>
936
+
937
+
938
+
939
+
940
+
941
+ </h3><table class="source_code">
942
+ <tr>
943
+ <td>
938
944
  <pre class="lines">
939
945
 
940
946
 
@@ -945,9 +951,9 @@
945
951
  135
946
952
  136
947
953
  137
948
- 138</pre>
949
- </td>
950
- <td>
954
+ 138</pre>
955
+ </td>
956
+ <td>
951
957
  <pre class="code"><span class="info file"># File 'lib/utopia/localization.rb', line 131</span>
952
958
 
953
959
  <span class='kw'>def</span> <span class='id identifier rubyid_host_preferred_locales'>host_preferred_locales</span><span class='lparen'>(</span><span class='id identifier rubyid_env'>env</span><span class='rparen'>)</span>
@@ -957,47 +963,47 @@
957
963
  </span> <span class='ivar'>@hosts</span><span class='period'>.</span><span class='id identifier rubyid_each'>each</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_pattern'>pattern</span><span class='comma'>,</span> <span class='id identifier rubyid_locale'>locale</span><span class='op'>|</span>
958
964
  <span class='kw'>yield</span> <span class='id identifier rubyid_locale'>locale</span> <span class='kw'>if</span> <span class='id identifier rubyid_http_host'>http_host</span><span class='lbracket'>[</span><span class='id identifier rubyid_pattern'>pattern</span><span class='rbracket'>]</span>
959
965
  <span class='kw'>end</span>
960
- <span class='kw'>end</span></pre>
961
- </td>
962
- </tr>
963
- </table>
964
- </div>
965
-
966
- <div class="method_details ">
967
- <h3 class="signature " id="localized?-instance_method">
968
-
969
- #<strong>localized?</strong>(env) &#x21d2; <tt>Boolean</tt>
970
-
971
-
972
-
973
-
974
-
975
- </h3><div class="docstring">
976
- <div class="discussion">
977
-
978
-
979
-
980
- </div>
981
- </div>
982
- <div class="tags">
983
-
984
- <p class="tag_title">Returns:</p>
985
- <ul class="return">
986
-
987
- <li>
988
-
989
-
990
- <span class='type'>(<tt>Boolean</tt>)</span>
991
-
992
-
993
-
994
- </li>
995
-
996
- </ul>
997
-
998
- </div><table class="source_code">
999
- <tr>
1000
- <td>
966
+ <span class='kw'>end</span></pre>
967
+ </td>
968
+ </tr>
969
+ </table>
970
+ </div>
971
+
972
+ <div class="method_details ">
973
+ <h3 class="signature " id="localized?-instance_method">
974
+
975
+ #<strong>localized?</strong>(env) &#x21d2; <tt>Boolean</tt>
976
+
977
+
978
+
979
+
980
+
981
+ </h3><div class="docstring">
982
+ <div class="discussion">
983
+
984
+
985
+
986
+ </div>
987
+ </div>
988
+ <div class="tags">
989
+
990
+ <p class="tag_title">Returns:</p>
991
+ <ul class="return">
992
+
993
+ <li>
994
+
995
+
996
+ <span class='type'>(<tt>Boolean</tt>)</span>
997
+
998
+
999
+
1000
+ </li>
1001
+
1002
+ </ul>
1003
+
1004
+ </div><table class="source_code">
1005
+ <tr>
1006
+ <td>
1001
1007
  <pre class="lines">
1002
1008
 
1003
1009
 
@@ -1011,9 +1017,9 @@
1011
1017
  176
1012
1018
  177
1013
1019
  178
1014
- 179</pre>
1015
- </td>
1016
- <td>
1020
+ 179</pre>
1021
+ </td>
1022
+ <td>
1017
1023
  <pre class="code"><span class="info file"># File 'lib/utopia/localization.rb', line 169</span>
1018
1024
 
1019
1025
  <span class='kw'>def</span> <span class='id identifier rubyid_localized?'>localized?</span><span class='lparen'>(</span><span class='id identifier rubyid_env'>env</span><span class='rparen'>)</span>
@@ -1026,24 +1032,24 @@
1026
1032
  <span class='kw'>return</span> <span class='kw'>false</span> <span class='kw'>if</span> <span class='ivar'>@ignore</span><span class='period'>.</span><span class='id identifier rubyid_any?'>any?</span> <span class='lbrace'>{</span> <span class='op'>|</span><span class='id identifier rubyid_pattern'>pattern</span><span class='op'>|</span> <span class='id identifier rubyid_path_info'>path_info</span><span class='lbracket'>[</span><span class='id identifier rubyid_pattern'>pattern</span><span class='rbracket'>]</span> <span class='op'>!=</span> <span class='kw'>nil</span> <span class='rbrace'>}</span>
1027
1033
 
1028
1034
  <span class='kw'>return</span> <span class='kw'>true</span>
1029
- <span class='kw'>end</span></pre>
1030
- </td>
1031
- </tr>
1032
- </table>
1033
- </div>
1034
-
1035
- <div class="method_details ">
1036
- <h3 class="signature " id="preferred_locales-instance_method">
1037
-
1038
- #<strong>preferred_locales</strong>(env) &#x21d2; <tt>Object</tt>
1039
-
1040
-
1041
-
1042
-
1043
-
1044
- </h3><table class="source_code">
1045
- <tr>
1046
- <td>
1035
+ <span class='kw'>end</span></pre>
1036
+ </td>
1037
+ </tr>
1038
+ </table>
1039
+ </div>
1040
+
1041
+ <div class="method_details ">
1042
+ <h3 class="signature " id="preferred_locales-instance_method">
1043
+
1044
+ #<strong>preferred_locales</strong>(env) &#x21d2; <tt>Object</tt>
1045
+
1046
+
1047
+
1048
+
1049
+
1050
+ </h3><table class="source_code">
1051
+ <tr>
1052
+ <td>
1047
1053
  <pre class="lines">
1048
1054
 
1049
1055
 
@@ -1071,9 +1077,9 @@
1071
1077
  126
1072
1078
  127
1073
1079
  128
1074
- 129</pre>
1075
- </td>
1076
- <td>
1080
+ 129</pre>
1081
+ </td>
1082
+ <td>
1077
1083
  <pre class="code"><span class="info file"># File 'lib/utopia/localization.rb', line 105</span>
1078
1084
 
1079
1085
  <span class='kw'>def</span> <span class='id identifier rubyid_preferred_locales'>preferred_locales</span><span class='lparen'>(</span><span class='id identifier rubyid_env'>env</span><span class='rparen'>)</span>
@@ -1100,24 +1106,24 @@
1100
1106
  <span class='ivar'>@default_locales</span><span class='period'>.</span><span class='id identifier rubyid_each'>each</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_locale'>locale</span><span class='op'>|</span>
1101
1107
  <span class='kw'>yield</span> <span class='id identifier rubyid_env'>env</span><span class='period'>.</span><span class='id identifier rubyid_merge'>merge</span><span class='lparen'>(</span><span class='const'><span class='object_link'><a href="#CURRENT_LOCALE_KEY-constant" title="Utopia::Localization::CURRENT_LOCALE_KEY (constant)">CURRENT_LOCALE_KEY</a></span></span> <span class='op'>=&gt;</span> <span class='id identifier rubyid_locale'>locale</span><span class='rparen'>)</span> <span class='kw'>if</span> <span class='id identifier rubyid_locales'>locales</span><span class='period'>.</span><span class='id identifier rubyid_add?'>add?</span> <span class='id identifier rubyid_locale'>locale</span>
1102
1108
  <span class='kw'>end</span>
1103
- <span class='kw'>end</span></pre>
1104
- </td>
1105
- </tr>
1106
- </table>
1107
- </div>
1108
-
1109
- <div class="method_details ">
1110
- <h3 class="signature " id="request_preferred_locale-instance_method">
1111
-
1112
- #<strong>request_preferred_locale</strong>(env) &#x21d2; <tt>Object</tt>
1113
-
1114
-
1115
-
1116
-
1117
-
1118
- </h3><table class="source_code">
1119
- <tr>
1120
- <td>
1109
+ <span class='kw'>end</span></pre>
1110
+ </td>
1111
+ </tr>
1112
+ </table>
1113
+ </div>
1114
+
1115
+ <div class="method_details ">
1116
+ <h3 class="signature " id="request_preferred_locale-instance_method">
1117
+
1118
+ #<strong>request_preferred_locale</strong>(env) &#x21d2; <tt>Object</tt>
1119
+
1120
+
1121
+
1122
+
1123
+
1124
+ </h3><table class="source_code">
1125
+ <tr>
1126
+ <td>
1121
1127
  <pre class="lines">
1122
1128
 
1123
1129
 
@@ -1130,9 +1136,9 @@
1130
1136
  146
1131
1137
  147
1132
1138
  148
1133
- 149</pre>
1134
- </td>
1135
- <td>
1139
+ 149</pre>
1140
+ </td>
1141
+ <td>
1136
1142
  <pre class="code"><span class="info file"># File 'lib/utopia/localization.rb', line 140</span>
1137
1143
 
1138
1144
  <span class='kw'>def</span> <span class='id identifier rubyid_request_preferred_locale'>request_preferred_locale</span><span class='lparen'>(</span><span class='id identifier rubyid_env'>env</span><span class='rparen'>)</span>
@@ -1144,34 +1150,34 @@
1144
1150
 
1145
1151
  <span class='kw'>yield</span> <span class='id identifier rubyid_request_locale'>request_locale</span><span class='comma'>,</span> <span class='id identifier rubyid_path'>path</span>
1146
1152
  <span class='kw'>end</span>
1147
- <span class='kw'>end</span></pre>
1148
- </td>
1149
- </tr>
1150
- </table>
1151
- </div>
1152
-
1153
- <div class="method_details ">
1154
- <h3 class="signature " id="vary-instance_method">
1155
-
1156
- #<strong>vary</strong>(env, response) &#x21d2; <tt>Object</tt>
1157
-
1158
-
1159
-
1160
-
1161
-
1162
- </h3><div class="docstring">
1163
- <div class="discussion">
1153
+ <span class='kw'>end</span></pre>
1154
+ </td>
1155
+ </tr>
1156
+ </table>
1157
+ </div>
1158
+
1159
+ <div class="method_details ">
1160
+ <h3 class="signature " id="vary-instance_method">
1161
+
1162
+ #<strong>vary</strong>(env, response) &#x21d2; <tt>Object</tt>
1163
+
1164
+
1165
+
1166
+
1167
+
1168
+ </h3><div class="docstring">
1169
+ <div class="discussion">
1164
1170
  <p>Set the Vary: header on the response to indicate that this response should include the header in the cache key.</p>
1165
-
1166
-
1167
- </div>
1168
- </div>
1169
- <div class="tags">
1170
-
1171
-
1172
- </div><table class="source_code">
1173
- <tr>
1174
- <td>
1171
+
1172
+
1173
+ </div>
1174
+ </div>
1175
+ <div class="tags">
1176
+
1177
+
1178
+ </div><table class="source_code">
1179
+ <tr>
1180
+ <td>
1175
1181
  <pre class="lines">
1176
1182
 
1177
1183
 
@@ -1192,9 +1198,9 @@
1192
1198
  196
1193
1199
  197
1194
1200
  198
1195
- 199</pre>
1196
- </td>
1197
- <td>
1201
+ 199</pre>
1202
+ </td>
1203
+ <td>
1198
1204
  <pre class="code"><span class="info file"># File 'lib/utopia/localization.rb', line 182</span>
1199
1205
 
1200
1206
  <span class='kw'>def</span> <span class='id identifier rubyid_vary'>vary</span><span class='lparen'>(</span><span class='id identifier rubyid_env'>env</span><span class='comma'>,</span> <span class='id identifier rubyid_response'>response</span><span class='rparen'>)</span>
@@ -1214,22 +1220,22 @@
1214
1220
  <span class='kw'>end</span>
1215
1221
 
1216
1222
  <span class='kw'>return</span> <span class='id identifier rubyid_response'>response</span>
1217
- <span class='kw'>end</span></pre>
1218
- </td>
1219
- </tr>
1220
- </table>
1221
- </div>
1222
-
1223
- </div>
1224
-
1225
- </div>
1226
-
1227
- <div id="footer">
1228
- Generated on Sat Mar 24 21:17:20 2018 by
1229
- <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
1230
- 0.9.12 (ruby-2.5.0).
1231
- </div>
1232
-
1233
- </div>
1234
- </body>
1223
+ <span class='kw'>end</span></pre>
1224
+ </td>
1225
+ </tr>
1226
+ </table>
1227
+ </div>
1228
+
1229
+ </div>
1230
+
1231
+ </div>
1232
+
1233
+ <div id="footer">
1234
+ Generated on Sat Mar 9 12:01:53 2019 by
1235
+ <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
1236
+ 0.9.18 (ruby-2.6.1).
1237
+ </div>
1238
+
1239
+ </div>
1240
+ </body>
1235
1241
  </html>