prismic.io 1.4.1 → 1.4.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.yardopts +1 -1
- data/Gemfile.lock +1 -1
- data/README.md +6 -14
- data/docs/Prismic.html +1074 -0
- data/docs/Prismic/API.html +2987 -0
- data/docs/Prismic/API/BadPrismicResponseError.html +147 -0
- data/docs/Prismic/API/OAuth.html +560 -0
- data/docs/Prismic/API/PrismicWSAuthError.html +375 -0
- data/docs/Prismic/API/PrismicWSConnectionError.html +221 -0
- data/docs/Prismic/BasicNullCache.html +255 -0
- data/docs/Prismic/DefaultHTTPClient.html +350 -0
- data/docs/Prismic/Document.html +873 -0
- data/docs/Prismic/Error.html +418 -0
- data/docs/Prismic/Experiment.html +633 -0
- data/docs/Prismic/Experiments.html +633 -0
- data/docs/Prismic/Field.html +424 -0
- data/docs/Prismic/Form.html +827 -0
- data/docs/Prismic/Fragments.html +117 -0
- data/docs/Prismic/Fragments/Color.html +632 -0
- data/docs/Prismic/Fragments/Date.html +399 -0
- data/docs/Prismic/Fragments/DocumentLink.html +1048 -0
- data/docs/Prismic/Fragments/Embed.html +679 -0
- data/docs/Prismic/Fragments/FileLink.html +604 -0
- data/docs/Prismic/Fragments/Fragment.html +339 -0
- data/docs/Prismic/Fragments/GeoPoint.html +469 -0
- data/docs/Prismic/Fragments/Group.html +710 -0
- data/docs/Prismic/Fragments/GroupDocument.html +382 -0
- data/docs/Prismic/Fragments/Image.html +780 -0
- data/docs/Prismic/Fragments/Image/View.html +759 -0
- data/docs/Prismic/Fragments/Image/ViewDoesNotExistException.html +147 -0
- data/docs/Prismic/Fragments/ImageLink.html +336 -0
- data/docs/Prismic/Fragments/Link.html +412 -0
- data/docs/Prismic/Fragments/Multiple.html +513 -0
- data/docs/Prismic/Fragments/Number.html +401 -0
- data/docs/Prismic/Fragments/Select.html +349 -0
- data/docs/Prismic/Fragments/Separator.html +396 -0
- data/docs/Prismic/Fragments/Slice.html +632 -0
- data/docs/Prismic/Fragments/SliceZone.html +474 -0
- data/docs/Prismic/Fragments/StructuredText.html +664 -0
- data/docs/Prismic/Fragments/StructuredText/Block.html +232 -0
- data/docs/Prismic/Fragments/StructuredText/Block/Embed.html +367 -0
- data/docs/Prismic/Fragments/StructuredText/Block/Heading.html +366 -0
- data/docs/Prismic/Fragments/StructuredText/Block/Image.html +755 -0
- data/docs/Prismic/Fragments/StructuredText/Block/ListItem.html +372 -0
- data/docs/Prismic/Fragments/StructuredText/Block/Paragraph.html +223 -0
- data/docs/Prismic/Fragments/StructuredText/Block/Preformatted.html +223 -0
- data/docs/Prismic/Fragments/StructuredText/Block/Text.html +818 -0
- data/docs/Prismic/Fragments/StructuredText/BlockGroup.html +423 -0
- data/docs/Prismic/Fragments/StructuredText/Span.html +384 -0
- data/docs/Prismic/Fragments/StructuredText/Span/Em.html +213 -0
- data/docs/Prismic/Fragments/StructuredText/Span/Hyperlink.html +359 -0
- data/docs/Prismic/Fragments/StructuredText/Span/Label.html +362 -0
- data/docs/Prismic/Fragments/StructuredText/Span/Strong.html +213 -0
- data/docs/Prismic/Fragments/Text.html +396 -0
- data/docs/Prismic/Fragments/Timestamp.html +399 -0
- data/docs/Prismic/Fragments/WebLink.html +340 -0
- data/docs/Prismic/HtmlSerializer.html +270 -0
- data/docs/Prismic/JsonParser.html +1764 -0
- data/docs/Prismic/LinkResolver.html +399 -0
- data/docs/Prismic/LruCache.html +1140 -0
- data/docs/Prismic/Predicates.html +1630 -0
- data/docs/Prismic/Ref.html +643 -0
- data/docs/Prismic/Response.html +1159 -0
- data/docs/Prismic/SearchForm.html +2172 -0
- data/docs/Prismic/SearchForm/AuthenticationException.html +147 -0
- data/docs/Prismic/SearchForm/AuthorizationException.html +147 -0
- data/docs/Prismic/SearchForm/FormSearchException.html +147 -0
- data/docs/Prismic/SearchForm/NoRefSetException.html +147 -0
- data/docs/Prismic/SearchForm/RefNotFoundException.html +147 -0
- data/docs/Prismic/SearchForm/UnsupportedFormKind.html +147 -0
- data/docs/Prismic/Variation.html +546 -0
- data/docs/Prismic/WithFragments.html +1803 -0
- data/docs/_index.html +752 -0
- data/docs/class_list.html +54 -0
- data/docs/css/common.css +1 -0
- data/docs/css/full_list.css +57 -0
- data/docs/css/style.css +339 -0
- data/docs/file.README.html +180 -0
- data/docs/file_list.html +56 -0
- data/docs/frames.html +26 -0
- data/docs/index.html +180 -0
- data/docs/js/app.js +219 -0
- data/docs/js/full_list.js +178 -0
- data/docs/js/jquery.js +4 -0
- data/docs/method_list.html +2381 -0
- data/docs/top-level-namespace.html +112 -0
- data/lib/prismic.rb +17 -1
- data/lib/prismic/api.rb +31 -19
- data/lib/prismic/fragments/image.rb +6 -0
- data/lib/prismic/json_parsers.rb +2 -0
- data/lib/prismic/version.rb +1 -1
- data/spec/cache_spec.rb +12 -12
- data/spec/json_parsers_spec.rb +10 -5
- data/spec/oauth_spec.rb +3 -3
- data/spec/prismic_spec.rb +7 -7
- data/spec/responses_mocks/api.json +12 -12
- data/spec/responses_mocks/document.json +4 -2
- data/spec/responses_mocks/document_with_unknown_fragment.json +2 -0
- data/spec/responses_mocks/fragments.json +5 -3
- data/spec/responses_mocks/slices.json +2 -0
- data/spec/responses_mocks/structured_text_with_labels.json +2 -2
- data/spec/simple_search_spec.rb +55 -0
- metadata +103 -24
- data/deploy-doc.sh +0 -9
- data/spec/doc_spec.rb +0 -298
- data/spec/lesbonneschoses_spec.rb +0 -228
@@ -0,0 +1,1630 @@
|
|
1
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
2
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
3
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
4
|
+
<head>
|
5
|
+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
6
|
+
<title>
|
7
|
+
Module: Prismic::Predicates
|
8
|
+
|
9
|
+
— Documentation by YARD 0.8.7.4
|
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
|
+
hasFrames = window.top.frames.main ? true : false;
|
19
|
+
relpath = '../';
|
20
|
+
framesUrl = "../frames.html#!Prismic/Predicates.html";
|
21
|
+
</script>
|
22
|
+
|
23
|
+
|
24
|
+
<script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
|
25
|
+
|
26
|
+
<script type="text/javascript" charset="utf-8" src="../js/app.js"></script>
|
27
|
+
|
28
|
+
|
29
|
+
</head>
|
30
|
+
<body>
|
31
|
+
<div id="header">
|
32
|
+
<div id="menu">
|
33
|
+
|
34
|
+
<a href="../_index.html">Index (P)</a> »
|
35
|
+
<span class='title'><span class='object_link'><a href="../Prismic.html" title="Prismic (module)">Prismic</a></span></span>
|
36
|
+
»
|
37
|
+
<span class="title">Predicates</span>
|
38
|
+
|
39
|
+
|
40
|
+
<div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
|
41
|
+
</div>
|
42
|
+
|
43
|
+
<div id="search">
|
44
|
+
|
45
|
+
<a class="full_list_link" id="class_list_link"
|
46
|
+
href="../class_list.html">
|
47
|
+
Class List
|
48
|
+
</a>
|
49
|
+
|
50
|
+
<a class="full_list_link" id="method_list_link"
|
51
|
+
href="../method_list.html">
|
52
|
+
Method List
|
53
|
+
</a>
|
54
|
+
|
55
|
+
<a class="full_list_link" id="file_list_link"
|
56
|
+
href="../file_list.html">
|
57
|
+
File List
|
58
|
+
</a>
|
59
|
+
|
60
|
+
</div>
|
61
|
+
<div class="clear"></div>
|
62
|
+
</div>
|
63
|
+
|
64
|
+
<iframe id="search_frame"></iframe>
|
65
|
+
|
66
|
+
<div id="content"><h1>Module: Prismic::Predicates
|
67
|
+
|
68
|
+
|
69
|
+
|
70
|
+
</h1>
|
71
|
+
|
72
|
+
<dl class="box">
|
73
|
+
|
74
|
+
|
75
|
+
|
76
|
+
|
77
|
+
|
78
|
+
|
79
|
+
|
80
|
+
|
81
|
+
<dt class="r1 last">Defined in:</dt>
|
82
|
+
<dd class="r1 last">lib/prismic/predicates.rb</dd>
|
83
|
+
|
84
|
+
</dl>
|
85
|
+
<div class="clear"></div>
|
86
|
+
|
87
|
+
|
88
|
+
|
89
|
+
|
90
|
+
|
91
|
+
|
92
|
+
|
93
|
+
|
94
|
+
|
95
|
+
<h2>
|
96
|
+
Class Method Summary
|
97
|
+
<small>(<a href="#" class="summary_toggle">collapse</a>)</small>
|
98
|
+
</h2>
|
99
|
+
|
100
|
+
<ul class="summary">
|
101
|
+
|
102
|
+
<li class="public ">
|
103
|
+
<span class="summary_signature">
|
104
|
+
|
105
|
+
<a href="#any-class_method" title="any (class method)">+ (Object) <strong>any</strong>(fragment, values) </a>
|
106
|
+
|
107
|
+
|
108
|
+
|
109
|
+
</span>
|
110
|
+
|
111
|
+
|
112
|
+
|
113
|
+
|
114
|
+
|
115
|
+
|
116
|
+
|
117
|
+
|
118
|
+
|
119
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
120
|
+
|
121
|
+
</li>
|
122
|
+
|
123
|
+
|
124
|
+
<li class="public ">
|
125
|
+
<span class="summary_signature">
|
126
|
+
|
127
|
+
<a href="#at-class_method" title="at (class method)">+ (Object) <strong>at</strong>(fragment, value) </a>
|
128
|
+
|
129
|
+
|
130
|
+
|
131
|
+
</span>
|
132
|
+
|
133
|
+
|
134
|
+
|
135
|
+
|
136
|
+
|
137
|
+
|
138
|
+
|
139
|
+
|
140
|
+
|
141
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
142
|
+
|
143
|
+
</li>
|
144
|
+
|
145
|
+
|
146
|
+
<li class="public ">
|
147
|
+
<span class="summary_signature">
|
148
|
+
|
149
|
+
<a href="#date_after-class_method" title="date_after (class method)">+ (Object) <strong>date_after</strong>(fragment, after) </a>
|
150
|
+
|
151
|
+
|
152
|
+
|
153
|
+
</span>
|
154
|
+
|
155
|
+
|
156
|
+
|
157
|
+
|
158
|
+
|
159
|
+
|
160
|
+
|
161
|
+
|
162
|
+
|
163
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
164
|
+
|
165
|
+
</li>
|
166
|
+
|
167
|
+
|
168
|
+
<li class="public ">
|
169
|
+
<span class="summary_signature">
|
170
|
+
|
171
|
+
<a href="#date_before-class_method" title="date_before (class method)">+ (Object) <strong>date_before</strong>(fragment, before) </a>
|
172
|
+
|
173
|
+
|
174
|
+
|
175
|
+
</span>
|
176
|
+
|
177
|
+
|
178
|
+
|
179
|
+
|
180
|
+
|
181
|
+
|
182
|
+
|
183
|
+
|
184
|
+
|
185
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
186
|
+
|
187
|
+
</li>
|
188
|
+
|
189
|
+
|
190
|
+
<li class="public ">
|
191
|
+
<span class="summary_signature">
|
192
|
+
|
193
|
+
<a href="#date_between-class_method" title="date_between (class method)">+ (Object) <strong>date_between</strong>(fragment, before, after) </a>
|
194
|
+
|
195
|
+
|
196
|
+
|
197
|
+
</span>
|
198
|
+
|
199
|
+
|
200
|
+
|
201
|
+
|
202
|
+
|
203
|
+
|
204
|
+
|
205
|
+
|
206
|
+
|
207
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
208
|
+
|
209
|
+
</li>
|
210
|
+
|
211
|
+
|
212
|
+
<li class="public ">
|
213
|
+
<span class="summary_signature">
|
214
|
+
|
215
|
+
<a href="#day_of_month-class_method" title="day_of_month (class method)">+ (Object) <strong>day_of_month</strong>(fragment, day) </a>
|
216
|
+
|
217
|
+
|
218
|
+
|
219
|
+
</span>
|
220
|
+
|
221
|
+
|
222
|
+
|
223
|
+
|
224
|
+
|
225
|
+
|
226
|
+
|
227
|
+
|
228
|
+
|
229
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
230
|
+
|
231
|
+
</li>
|
232
|
+
|
233
|
+
|
234
|
+
<li class="public ">
|
235
|
+
<span class="summary_signature">
|
236
|
+
|
237
|
+
<a href="#day_of_month_after-class_method" title="day_of_month_after (class method)">+ (Object) <strong>day_of_month_after</strong>(fragment, day) </a>
|
238
|
+
|
239
|
+
|
240
|
+
|
241
|
+
</span>
|
242
|
+
|
243
|
+
|
244
|
+
|
245
|
+
|
246
|
+
|
247
|
+
|
248
|
+
|
249
|
+
|
250
|
+
|
251
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
252
|
+
|
253
|
+
</li>
|
254
|
+
|
255
|
+
|
256
|
+
<li class="public ">
|
257
|
+
<span class="summary_signature">
|
258
|
+
|
259
|
+
<a href="#day_of_month_before-class_method" title="day_of_month_before (class method)">+ (Object) <strong>day_of_month_before</strong>(fragment, day) </a>
|
260
|
+
|
261
|
+
|
262
|
+
|
263
|
+
</span>
|
264
|
+
|
265
|
+
|
266
|
+
|
267
|
+
|
268
|
+
|
269
|
+
|
270
|
+
|
271
|
+
|
272
|
+
|
273
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
274
|
+
|
275
|
+
</li>
|
276
|
+
|
277
|
+
|
278
|
+
<li class="public ">
|
279
|
+
<span class="summary_signature">
|
280
|
+
|
281
|
+
<a href="#day_of_week-class_method" title="day_of_week (class method)">+ (Object) <strong>day_of_week</strong>(fragment, day) </a>
|
282
|
+
|
283
|
+
|
284
|
+
|
285
|
+
</span>
|
286
|
+
|
287
|
+
|
288
|
+
|
289
|
+
|
290
|
+
|
291
|
+
|
292
|
+
|
293
|
+
|
294
|
+
|
295
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
296
|
+
|
297
|
+
</li>
|
298
|
+
|
299
|
+
|
300
|
+
<li class="public ">
|
301
|
+
<span class="summary_signature">
|
302
|
+
|
303
|
+
<a href="#day_of_week_after-class_method" title="day_of_week_after (class method)">+ (Object) <strong>day_of_week_after</strong>(fragment, day) </a>
|
304
|
+
|
305
|
+
|
306
|
+
|
307
|
+
</span>
|
308
|
+
|
309
|
+
|
310
|
+
|
311
|
+
|
312
|
+
|
313
|
+
|
314
|
+
|
315
|
+
|
316
|
+
|
317
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
318
|
+
|
319
|
+
</li>
|
320
|
+
|
321
|
+
|
322
|
+
<li class="public ">
|
323
|
+
<span class="summary_signature">
|
324
|
+
|
325
|
+
<a href="#day_of_week_before-class_method" title="day_of_week_before (class method)">+ (Object) <strong>day_of_week_before</strong>(fragment, day) </a>
|
326
|
+
|
327
|
+
|
328
|
+
|
329
|
+
</span>
|
330
|
+
|
331
|
+
|
332
|
+
|
333
|
+
|
334
|
+
|
335
|
+
|
336
|
+
|
337
|
+
|
338
|
+
|
339
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
340
|
+
|
341
|
+
</li>
|
342
|
+
|
343
|
+
|
344
|
+
<li class="public ">
|
345
|
+
<span class="summary_signature">
|
346
|
+
|
347
|
+
<a href="#fulltext-class_method" title="fulltext (class method)">+ (Object) <strong>fulltext</strong>(fragment, values) </a>
|
348
|
+
|
349
|
+
|
350
|
+
|
351
|
+
</span>
|
352
|
+
|
353
|
+
|
354
|
+
|
355
|
+
|
356
|
+
|
357
|
+
|
358
|
+
|
359
|
+
|
360
|
+
|
361
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
362
|
+
|
363
|
+
</li>
|
364
|
+
|
365
|
+
|
366
|
+
<li class="public ">
|
367
|
+
<span class="summary_signature">
|
368
|
+
|
369
|
+
<a href="#gt-class_method" title="gt (class method)">+ (Object) <strong>gt</strong>(fragment, value) </a>
|
370
|
+
|
371
|
+
|
372
|
+
|
373
|
+
</span>
|
374
|
+
|
375
|
+
|
376
|
+
|
377
|
+
|
378
|
+
|
379
|
+
|
380
|
+
|
381
|
+
|
382
|
+
|
383
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
384
|
+
|
385
|
+
</li>
|
386
|
+
|
387
|
+
|
388
|
+
<li class="public ">
|
389
|
+
<span class="summary_signature">
|
390
|
+
|
391
|
+
<a href="#has-class_method" title="has (class method)">+ (Object) <strong>has</strong>(fragment) </a>
|
392
|
+
|
393
|
+
|
394
|
+
|
395
|
+
</span>
|
396
|
+
|
397
|
+
|
398
|
+
|
399
|
+
|
400
|
+
|
401
|
+
|
402
|
+
|
403
|
+
|
404
|
+
|
405
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
406
|
+
|
407
|
+
</li>
|
408
|
+
|
409
|
+
|
410
|
+
<li class="public ">
|
411
|
+
<span class="summary_signature">
|
412
|
+
|
413
|
+
<a href="#hour-class_method" title="hour (class method)">+ (Object) <strong>hour</strong>(fragment, hour) </a>
|
414
|
+
|
415
|
+
|
416
|
+
|
417
|
+
</span>
|
418
|
+
|
419
|
+
|
420
|
+
|
421
|
+
|
422
|
+
|
423
|
+
|
424
|
+
|
425
|
+
|
426
|
+
|
427
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
428
|
+
|
429
|
+
</li>
|
430
|
+
|
431
|
+
|
432
|
+
<li class="public ">
|
433
|
+
<span class="summary_signature">
|
434
|
+
|
435
|
+
<a href="#hour_after-class_method" title="hour_after (class method)">+ (Object) <strong>hour_after</strong>(fragment, hour) </a>
|
436
|
+
|
437
|
+
|
438
|
+
|
439
|
+
</span>
|
440
|
+
|
441
|
+
|
442
|
+
|
443
|
+
|
444
|
+
|
445
|
+
|
446
|
+
|
447
|
+
|
448
|
+
|
449
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
450
|
+
|
451
|
+
</li>
|
452
|
+
|
453
|
+
|
454
|
+
<li class="public ">
|
455
|
+
<span class="summary_signature">
|
456
|
+
|
457
|
+
<a href="#hour_before-class_method" title="hour_before (class method)">+ (Object) <strong>hour_before</strong>(fragment, hour) </a>
|
458
|
+
|
459
|
+
|
460
|
+
|
461
|
+
</span>
|
462
|
+
|
463
|
+
|
464
|
+
|
465
|
+
|
466
|
+
|
467
|
+
|
468
|
+
|
469
|
+
|
470
|
+
|
471
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
472
|
+
|
473
|
+
</li>
|
474
|
+
|
475
|
+
|
476
|
+
<li class="public ">
|
477
|
+
<span class="summary_signature">
|
478
|
+
|
479
|
+
<a href="#in-class_method" title="in (class method)">+ (Object) <strong>in</strong>(fragment, value) </a>
|
480
|
+
|
481
|
+
|
482
|
+
|
483
|
+
</span>
|
484
|
+
|
485
|
+
|
486
|
+
|
487
|
+
|
488
|
+
|
489
|
+
|
490
|
+
|
491
|
+
|
492
|
+
|
493
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
494
|
+
|
495
|
+
</li>
|
496
|
+
|
497
|
+
|
498
|
+
<li class="public ">
|
499
|
+
<span class="summary_signature">
|
500
|
+
|
501
|
+
<a href="#in_range-class_method" title="in_range (class method)">+ (Object) <strong>in_range</strong>(fragment, before, after) </a>
|
502
|
+
|
503
|
+
|
504
|
+
|
505
|
+
</span>
|
506
|
+
|
507
|
+
|
508
|
+
|
509
|
+
|
510
|
+
|
511
|
+
|
512
|
+
|
513
|
+
|
514
|
+
|
515
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
516
|
+
|
517
|
+
</li>
|
518
|
+
|
519
|
+
|
520
|
+
<li class="public ">
|
521
|
+
<span class="summary_signature">
|
522
|
+
|
523
|
+
<a href="#lt-class_method" title="lt (class method)">+ (Object) <strong>lt</strong>(fragment, value) </a>
|
524
|
+
|
525
|
+
|
526
|
+
|
527
|
+
</span>
|
528
|
+
|
529
|
+
|
530
|
+
|
531
|
+
|
532
|
+
|
533
|
+
|
534
|
+
|
535
|
+
|
536
|
+
|
537
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
538
|
+
|
539
|
+
</li>
|
540
|
+
|
541
|
+
|
542
|
+
<li class="public ">
|
543
|
+
<span class="summary_signature">
|
544
|
+
|
545
|
+
<a href="#missing-class_method" title="missing (class method)">+ (Object) <strong>missing</strong>(fragment) </a>
|
546
|
+
|
547
|
+
|
548
|
+
|
549
|
+
</span>
|
550
|
+
|
551
|
+
|
552
|
+
|
553
|
+
|
554
|
+
|
555
|
+
|
556
|
+
|
557
|
+
|
558
|
+
|
559
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
560
|
+
|
561
|
+
</li>
|
562
|
+
|
563
|
+
|
564
|
+
<li class="public ">
|
565
|
+
<span class="summary_signature">
|
566
|
+
|
567
|
+
<a href="#month-class_method" title="month (class method)">+ (Object) <strong>month</strong>(fragment, month) </a>
|
568
|
+
|
569
|
+
|
570
|
+
|
571
|
+
</span>
|
572
|
+
|
573
|
+
|
574
|
+
|
575
|
+
|
576
|
+
|
577
|
+
|
578
|
+
|
579
|
+
|
580
|
+
|
581
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
582
|
+
|
583
|
+
</li>
|
584
|
+
|
585
|
+
|
586
|
+
<li class="public ">
|
587
|
+
<span class="summary_signature">
|
588
|
+
|
589
|
+
<a href="#month_after-class_method" title="month_after (class method)">+ (Object) <strong>month_after</strong>(fragment, month) </a>
|
590
|
+
|
591
|
+
|
592
|
+
|
593
|
+
</span>
|
594
|
+
|
595
|
+
|
596
|
+
|
597
|
+
|
598
|
+
|
599
|
+
|
600
|
+
|
601
|
+
|
602
|
+
|
603
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
604
|
+
|
605
|
+
</li>
|
606
|
+
|
607
|
+
|
608
|
+
<li class="public ">
|
609
|
+
<span class="summary_signature">
|
610
|
+
|
611
|
+
<a href="#month_before-class_method" title="month_before (class method)">+ (Object) <strong>month_before</strong>(fragment, month) </a>
|
612
|
+
|
613
|
+
|
614
|
+
|
615
|
+
</span>
|
616
|
+
|
617
|
+
|
618
|
+
|
619
|
+
|
620
|
+
|
621
|
+
|
622
|
+
|
623
|
+
|
624
|
+
|
625
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
626
|
+
|
627
|
+
</li>
|
628
|
+
|
629
|
+
|
630
|
+
<li class="public ">
|
631
|
+
<span class="summary_signature">
|
632
|
+
|
633
|
+
<a href="#near-class_method" title="near (class method)">+ (Object) <strong>near</strong>(fragment, latitude, longitude, radius) </a>
|
634
|
+
|
635
|
+
|
636
|
+
|
637
|
+
</span>
|
638
|
+
|
639
|
+
|
640
|
+
|
641
|
+
|
642
|
+
|
643
|
+
|
644
|
+
|
645
|
+
|
646
|
+
|
647
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
648
|
+
|
649
|
+
</li>
|
650
|
+
|
651
|
+
|
652
|
+
<li class="public ">
|
653
|
+
<span class="summary_signature">
|
654
|
+
|
655
|
+
<a href="#similar-class_method" title="similar (class method)">+ (Object) <strong>similar</strong>(fragment, value) </a>
|
656
|
+
|
657
|
+
|
658
|
+
|
659
|
+
</span>
|
660
|
+
|
661
|
+
|
662
|
+
|
663
|
+
|
664
|
+
|
665
|
+
|
666
|
+
|
667
|
+
|
668
|
+
|
669
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
670
|
+
|
671
|
+
</li>
|
672
|
+
|
673
|
+
|
674
|
+
<li class="public ">
|
675
|
+
<span class="summary_signature">
|
676
|
+
|
677
|
+
<a href="#year-class_method" title="year (class method)">+ (Object) <strong>year</strong>(fragment, year) </a>
|
678
|
+
|
679
|
+
|
680
|
+
|
681
|
+
</span>
|
682
|
+
|
683
|
+
|
684
|
+
|
685
|
+
|
686
|
+
|
687
|
+
|
688
|
+
|
689
|
+
|
690
|
+
|
691
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
692
|
+
|
693
|
+
</li>
|
694
|
+
|
695
|
+
|
696
|
+
<li class="public ">
|
697
|
+
<span class="summary_signature">
|
698
|
+
|
699
|
+
<a href="#year_after-class_method" title="year_after (class method)">+ (Object) <strong>year_after</strong>(fragment, year) </a>
|
700
|
+
|
701
|
+
|
702
|
+
|
703
|
+
</span>
|
704
|
+
|
705
|
+
|
706
|
+
|
707
|
+
|
708
|
+
|
709
|
+
|
710
|
+
|
711
|
+
|
712
|
+
|
713
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
714
|
+
|
715
|
+
</li>
|
716
|
+
|
717
|
+
|
718
|
+
<li class="public ">
|
719
|
+
<span class="summary_signature">
|
720
|
+
|
721
|
+
<a href="#year_before-class_method" title="year_before (class method)">+ (Object) <strong>year_before</strong>(fragment, year) </a>
|
722
|
+
|
723
|
+
|
724
|
+
|
725
|
+
</span>
|
726
|
+
|
727
|
+
|
728
|
+
|
729
|
+
|
730
|
+
|
731
|
+
|
732
|
+
|
733
|
+
|
734
|
+
|
735
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
736
|
+
|
737
|
+
</li>
|
738
|
+
|
739
|
+
|
740
|
+
</ul>
|
741
|
+
|
742
|
+
|
743
|
+
|
744
|
+
|
745
|
+
<div id="class_method_details" class="method_details_list">
|
746
|
+
<h2>Class Method Details</h2>
|
747
|
+
|
748
|
+
|
749
|
+
<div class="method_details first">
|
750
|
+
<h3 class="signature first" id="any-class_method">
|
751
|
+
|
752
|
+
+ (<tt>Object</tt>) <strong>any</strong>(fragment, values)
|
753
|
+
|
754
|
+
|
755
|
+
|
756
|
+
|
757
|
+
|
758
|
+
</h3><table class="source_code">
|
759
|
+
<tr>
|
760
|
+
<td>
|
761
|
+
<pre class="lines">
|
762
|
+
|
763
|
+
|
764
|
+
12
|
765
|
+
13
|
766
|
+
14</pre>
|
767
|
+
</td>
|
768
|
+
<td>
|
769
|
+
<pre class="code"><span class="info file"># File 'lib/prismic/predicates.rb', line 12</span>
|
770
|
+
|
771
|
+
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_any'>any</span><span class='lparen'>(</span><span class='id identifier rubyid_fragment'>fragment</span><span class='comma'>,</span> <span class='id identifier rubyid_values'>values</span><span class='rparen'>)</span>
|
772
|
+
<span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>any</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='id identifier rubyid_fragment'>fragment</span><span class='comma'>,</span> <span class='id identifier rubyid_values'>values</span><span class='rbracket'>]</span>
|
773
|
+
<span class='kw'>end</span></pre>
|
774
|
+
</td>
|
775
|
+
</tr>
|
776
|
+
</table>
|
777
|
+
</div>
|
778
|
+
|
779
|
+
<div class="method_details ">
|
780
|
+
<h3 class="signature " id="at-class_method">
|
781
|
+
|
782
|
+
+ (<tt>Object</tt>) <strong>at</strong>(fragment, value)
|
783
|
+
|
784
|
+
|
785
|
+
|
786
|
+
|
787
|
+
|
788
|
+
</h3><table class="source_code">
|
789
|
+
<tr>
|
790
|
+
<td>
|
791
|
+
<pre class="lines">
|
792
|
+
|
793
|
+
|
794
|
+
4
|
795
|
+
5
|
796
|
+
6</pre>
|
797
|
+
</td>
|
798
|
+
<td>
|
799
|
+
<pre class="code"><span class="info file"># File 'lib/prismic/predicates.rb', line 4</span>
|
800
|
+
|
801
|
+
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_at'>at</span><span class='lparen'>(</span><span class='id identifier rubyid_fragment'>fragment</span><span class='comma'>,</span> <span class='id identifier rubyid_value'>value</span><span class='rparen'>)</span>
|
802
|
+
<span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>at</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='id identifier rubyid_fragment'>fragment</span><span class='comma'>,</span> <span class='id identifier rubyid_value'>value</span><span class='rbracket'>]</span>
|
803
|
+
<span class='kw'>end</span></pre>
|
804
|
+
</td>
|
805
|
+
</tr>
|
806
|
+
</table>
|
807
|
+
</div>
|
808
|
+
|
809
|
+
<div class="method_details ">
|
810
|
+
<h3 class="signature " id="date_after-class_method">
|
811
|
+
|
812
|
+
+ (<tt>Object</tt>) <strong>date_after</strong>(fragment, after)
|
813
|
+
|
814
|
+
|
815
|
+
|
816
|
+
|
817
|
+
|
818
|
+
</h3><table class="source_code">
|
819
|
+
<tr>
|
820
|
+
<td>
|
821
|
+
<pre class="lines">
|
822
|
+
|
823
|
+
|
824
|
+
48
|
825
|
+
49
|
826
|
+
50</pre>
|
827
|
+
</td>
|
828
|
+
<td>
|
829
|
+
<pre class="code"><span class="info file"># File 'lib/prismic/predicates.rb', line 48</span>
|
830
|
+
|
831
|
+
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_date_after'>date_after</span><span class='lparen'>(</span><span class='id identifier rubyid_fragment'>fragment</span><span class='comma'>,</span> <span class='id identifier rubyid_after'>after</span><span class='rparen'>)</span>
|
832
|
+
<span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>date.after</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='id identifier rubyid_fragment'>fragment</span><span class='comma'>,</span> <span class='id identifier rubyid_as_timestamp'>as_timestamp</span><span class='lparen'>(</span><span class='id identifier rubyid_after'>after</span><span class='rparen'>)</span><span class='rbracket'>]</span>
|
833
|
+
<span class='kw'>end</span></pre>
|
834
|
+
</td>
|
835
|
+
</tr>
|
836
|
+
</table>
|
837
|
+
</div>
|
838
|
+
|
839
|
+
<div class="method_details ">
|
840
|
+
<h3 class="signature " id="date_before-class_method">
|
841
|
+
|
842
|
+
+ (<tt>Object</tt>) <strong>date_before</strong>(fragment, before)
|
843
|
+
|
844
|
+
|
845
|
+
|
846
|
+
|
847
|
+
|
848
|
+
</h3><table class="source_code">
|
849
|
+
<tr>
|
850
|
+
<td>
|
851
|
+
<pre class="lines">
|
852
|
+
|
853
|
+
|
854
|
+
44
|
855
|
+
45
|
856
|
+
46</pre>
|
857
|
+
</td>
|
858
|
+
<td>
|
859
|
+
<pre class="code"><span class="info file"># File 'lib/prismic/predicates.rb', line 44</span>
|
860
|
+
|
861
|
+
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_date_before'>date_before</span><span class='lparen'>(</span><span class='id identifier rubyid_fragment'>fragment</span><span class='comma'>,</span> <span class='id identifier rubyid_before'>before</span><span class='rparen'>)</span>
|
862
|
+
<span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>date.before</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='id identifier rubyid_fragment'>fragment</span><span class='comma'>,</span> <span class='id identifier rubyid_as_timestamp'>as_timestamp</span><span class='lparen'>(</span><span class='id identifier rubyid_before'>before</span><span class='rparen'>)</span><span class='rbracket'>]</span>
|
863
|
+
<span class='kw'>end</span></pre>
|
864
|
+
</td>
|
865
|
+
</tr>
|
866
|
+
</table>
|
867
|
+
</div>
|
868
|
+
|
869
|
+
<div class="method_details ">
|
870
|
+
<h3 class="signature " id="date_between-class_method">
|
871
|
+
|
872
|
+
+ (<tt>Object</tt>) <strong>date_between</strong>(fragment, before, after)
|
873
|
+
|
874
|
+
|
875
|
+
|
876
|
+
|
877
|
+
|
878
|
+
</h3><table class="source_code">
|
879
|
+
<tr>
|
880
|
+
<td>
|
881
|
+
<pre class="lines">
|
882
|
+
|
883
|
+
|
884
|
+
52
|
885
|
+
53
|
886
|
+
54</pre>
|
887
|
+
</td>
|
888
|
+
<td>
|
889
|
+
<pre class="code"><span class="info file"># File 'lib/prismic/predicates.rb', line 52</span>
|
890
|
+
|
891
|
+
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_date_between'>date_between</span><span class='lparen'>(</span><span class='id identifier rubyid_fragment'>fragment</span><span class='comma'>,</span> <span class='id identifier rubyid_before'>before</span><span class='comma'>,</span> <span class='id identifier rubyid_after'>after</span><span class='rparen'>)</span>
|
892
|
+
<span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>date.between</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='id identifier rubyid_fragment'>fragment</span><span class='comma'>,</span> <span class='id identifier rubyid_as_timestamp'>as_timestamp</span><span class='lparen'>(</span><span class='id identifier rubyid_before'>before</span><span class='rparen'>)</span><span class='comma'>,</span> <span class='id identifier rubyid_as_timestamp'>as_timestamp</span><span class='lparen'>(</span><span class='id identifier rubyid_after'>after</span><span class='rparen'>)</span><span class='rbracket'>]</span>
|
893
|
+
<span class='kw'>end</span></pre>
|
894
|
+
</td>
|
895
|
+
</tr>
|
896
|
+
</table>
|
897
|
+
</div>
|
898
|
+
|
899
|
+
<div class="method_details ">
|
900
|
+
<h3 class="signature " id="day_of_month-class_method">
|
901
|
+
|
902
|
+
+ (<tt>Object</tt>) <strong>day_of_month</strong>(fragment, day)
|
903
|
+
|
904
|
+
|
905
|
+
|
906
|
+
|
907
|
+
|
908
|
+
</h3><table class="source_code">
|
909
|
+
<tr>
|
910
|
+
<td>
|
911
|
+
<pre class="lines">
|
912
|
+
|
913
|
+
|
914
|
+
56
|
915
|
+
57
|
916
|
+
58</pre>
|
917
|
+
</td>
|
918
|
+
<td>
|
919
|
+
<pre class="code"><span class="info file"># File 'lib/prismic/predicates.rb', line 56</span>
|
920
|
+
|
921
|
+
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_day_of_month'>day_of_month</span><span class='lparen'>(</span><span class='id identifier rubyid_fragment'>fragment</span><span class='comma'>,</span> <span class='id identifier rubyid_day'>day</span><span class='rparen'>)</span>
|
922
|
+
<span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>date.day-of-month</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='id identifier rubyid_fragment'>fragment</span><span class='comma'>,</span> <span class='id identifier rubyid_day'>day</span><span class='rbracket'>]</span>
|
923
|
+
<span class='kw'>end</span></pre>
|
924
|
+
</td>
|
925
|
+
</tr>
|
926
|
+
</table>
|
927
|
+
</div>
|
928
|
+
|
929
|
+
<div class="method_details ">
|
930
|
+
<h3 class="signature " id="day_of_month_after-class_method">
|
931
|
+
|
932
|
+
+ (<tt>Object</tt>) <strong>day_of_month_after</strong>(fragment, day)
|
933
|
+
|
934
|
+
|
935
|
+
|
936
|
+
|
937
|
+
|
938
|
+
</h3><table class="source_code">
|
939
|
+
<tr>
|
940
|
+
<td>
|
941
|
+
<pre class="lines">
|
942
|
+
|
943
|
+
|
944
|
+
60
|
945
|
+
61
|
946
|
+
62</pre>
|
947
|
+
</td>
|
948
|
+
<td>
|
949
|
+
<pre class="code"><span class="info file"># File 'lib/prismic/predicates.rb', line 60</span>
|
950
|
+
|
951
|
+
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_day_of_month_after'>day_of_month_after</span><span class='lparen'>(</span><span class='id identifier rubyid_fragment'>fragment</span><span class='comma'>,</span> <span class='id identifier rubyid_day'>day</span><span class='rparen'>)</span>
|
952
|
+
<span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>date.day-of-month-after</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='id identifier rubyid_fragment'>fragment</span><span class='comma'>,</span> <span class='id identifier rubyid_day'>day</span><span class='rbracket'>]</span>
|
953
|
+
<span class='kw'>end</span></pre>
|
954
|
+
</td>
|
955
|
+
</tr>
|
956
|
+
</table>
|
957
|
+
</div>
|
958
|
+
|
959
|
+
<div class="method_details ">
|
960
|
+
<h3 class="signature " id="day_of_month_before-class_method">
|
961
|
+
|
962
|
+
+ (<tt>Object</tt>) <strong>day_of_month_before</strong>(fragment, day)
|
963
|
+
|
964
|
+
|
965
|
+
|
966
|
+
|
967
|
+
|
968
|
+
</h3><table class="source_code">
|
969
|
+
<tr>
|
970
|
+
<td>
|
971
|
+
<pre class="lines">
|
972
|
+
|
973
|
+
|
974
|
+
64
|
975
|
+
65
|
976
|
+
66</pre>
|
977
|
+
</td>
|
978
|
+
<td>
|
979
|
+
<pre class="code"><span class="info file"># File 'lib/prismic/predicates.rb', line 64</span>
|
980
|
+
|
981
|
+
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_day_of_month_before'>day_of_month_before</span><span class='lparen'>(</span><span class='id identifier rubyid_fragment'>fragment</span><span class='comma'>,</span> <span class='id identifier rubyid_day'>day</span><span class='rparen'>)</span>
|
982
|
+
<span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>date.day-of-month-before</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='id identifier rubyid_fragment'>fragment</span><span class='comma'>,</span> <span class='id identifier rubyid_day'>day</span><span class='rbracket'>]</span>
|
983
|
+
<span class='kw'>end</span></pre>
|
984
|
+
</td>
|
985
|
+
</tr>
|
986
|
+
</table>
|
987
|
+
</div>
|
988
|
+
|
989
|
+
<div class="method_details ">
|
990
|
+
<h3 class="signature " id="day_of_week-class_method">
|
991
|
+
|
992
|
+
+ (<tt>Object</tt>) <strong>day_of_week</strong>(fragment, day)
|
993
|
+
|
994
|
+
|
995
|
+
|
996
|
+
|
997
|
+
|
998
|
+
</h3><table class="source_code">
|
999
|
+
<tr>
|
1000
|
+
<td>
|
1001
|
+
<pre class="lines">
|
1002
|
+
|
1003
|
+
|
1004
|
+
68
|
1005
|
+
69
|
1006
|
+
70</pre>
|
1007
|
+
</td>
|
1008
|
+
<td>
|
1009
|
+
<pre class="code"><span class="info file"># File 'lib/prismic/predicates.rb', line 68</span>
|
1010
|
+
|
1011
|
+
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_day_of_week'>day_of_week</span><span class='lparen'>(</span><span class='id identifier rubyid_fragment'>fragment</span><span class='comma'>,</span> <span class='id identifier rubyid_day'>day</span><span class='rparen'>)</span>
|
1012
|
+
<span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>date.day-of-week</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='id identifier rubyid_fragment'>fragment</span><span class='comma'>,</span> <span class='id identifier rubyid_day'>day</span><span class='rbracket'>]</span>
|
1013
|
+
<span class='kw'>end</span></pre>
|
1014
|
+
</td>
|
1015
|
+
</tr>
|
1016
|
+
</table>
|
1017
|
+
</div>
|
1018
|
+
|
1019
|
+
<div class="method_details ">
|
1020
|
+
<h3 class="signature " id="day_of_week_after-class_method">
|
1021
|
+
|
1022
|
+
+ (<tt>Object</tt>) <strong>day_of_week_after</strong>(fragment, day)
|
1023
|
+
|
1024
|
+
|
1025
|
+
|
1026
|
+
|
1027
|
+
|
1028
|
+
</h3><table class="source_code">
|
1029
|
+
<tr>
|
1030
|
+
<td>
|
1031
|
+
<pre class="lines">
|
1032
|
+
|
1033
|
+
|
1034
|
+
72
|
1035
|
+
73
|
1036
|
+
74</pre>
|
1037
|
+
</td>
|
1038
|
+
<td>
|
1039
|
+
<pre class="code"><span class="info file"># File 'lib/prismic/predicates.rb', line 72</span>
|
1040
|
+
|
1041
|
+
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_day_of_week_after'>day_of_week_after</span><span class='lparen'>(</span><span class='id identifier rubyid_fragment'>fragment</span><span class='comma'>,</span> <span class='id identifier rubyid_day'>day</span><span class='rparen'>)</span>
|
1042
|
+
<span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>date.day-of-week-after</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='id identifier rubyid_fragment'>fragment</span><span class='comma'>,</span> <span class='id identifier rubyid_day'>day</span><span class='rbracket'>]</span>
|
1043
|
+
<span class='kw'>end</span></pre>
|
1044
|
+
</td>
|
1045
|
+
</tr>
|
1046
|
+
</table>
|
1047
|
+
</div>
|
1048
|
+
|
1049
|
+
<div class="method_details ">
|
1050
|
+
<h3 class="signature " id="day_of_week_before-class_method">
|
1051
|
+
|
1052
|
+
+ (<tt>Object</tt>) <strong>day_of_week_before</strong>(fragment, day)
|
1053
|
+
|
1054
|
+
|
1055
|
+
|
1056
|
+
|
1057
|
+
|
1058
|
+
</h3><table class="source_code">
|
1059
|
+
<tr>
|
1060
|
+
<td>
|
1061
|
+
<pre class="lines">
|
1062
|
+
|
1063
|
+
|
1064
|
+
76
|
1065
|
+
77
|
1066
|
+
78</pre>
|
1067
|
+
</td>
|
1068
|
+
<td>
|
1069
|
+
<pre class="code"><span class="info file"># File 'lib/prismic/predicates.rb', line 76</span>
|
1070
|
+
|
1071
|
+
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_day_of_week_before'>day_of_week_before</span><span class='lparen'>(</span><span class='id identifier rubyid_fragment'>fragment</span><span class='comma'>,</span> <span class='id identifier rubyid_day'>day</span><span class='rparen'>)</span>
|
1072
|
+
<span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>date.day-of-week-before</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='id identifier rubyid_fragment'>fragment</span><span class='comma'>,</span> <span class='id identifier rubyid_day'>day</span><span class='rbracket'>]</span>
|
1073
|
+
<span class='kw'>end</span></pre>
|
1074
|
+
</td>
|
1075
|
+
</tr>
|
1076
|
+
</table>
|
1077
|
+
</div>
|
1078
|
+
|
1079
|
+
<div class="method_details ">
|
1080
|
+
<h3 class="signature " id="fulltext-class_method">
|
1081
|
+
|
1082
|
+
+ (<tt>Object</tt>) <strong>fulltext</strong>(fragment, values)
|
1083
|
+
|
1084
|
+
|
1085
|
+
|
1086
|
+
|
1087
|
+
|
1088
|
+
</h3><table class="source_code">
|
1089
|
+
<tr>
|
1090
|
+
<td>
|
1091
|
+
<pre class="lines">
|
1092
|
+
|
1093
|
+
|
1094
|
+
16
|
1095
|
+
17
|
1096
|
+
18</pre>
|
1097
|
+
</td>
|
1098
|
+
<td>
|
1099
|
+
<pre class="code"><span class="info file"># File 'lib/prismic/predicates.rb', line 16</span>
|
1100
|
+
|
1101
|
+
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_fulltext'>fulltext</span><span class='lparen'>(</span><span class='id identifier rubyid_fragment'>fragment</span><span class='comma'>,</span> <span class='id identifier rubyid_values'>values</span><span class='rparen'>)</span>
|
1102
|
+
<span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>fulltext</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='id identifier rubyid_fragment'>fragment</span><span class='comma'>,</span> <span class='id identifier rubyid_values'>values</span><span class='rbracket'>]</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="gt-class_method">
|
1111
|
+
|
1112
|
+
+ (<tt>Object</tt>) <strong>gt</strong>(fragment, value)
|
1113
|
+
|
1114
|
+
|
1115
|
+
|
1116
|
+
|
1117
|
+
|
1118
|
+
</h3><table class="source_code">
|
1119
|
+
<tr>
|
1120
|
+
<td>
|
1121
|
+
<pre class="lines">
|
1122
|
+
|
1123
|
+
|
1124
|
+
32
|
1125
|
+
33
|
1126
|
+
34</pre>
|
1127
|
+
</td>
|
1128
|
+
<td>
|
1129
|
+
<pre class="code"><span class="info file"># File 'lib/prismic/predicates.rb', line 32</span>
|
1130
|
+
|
1131
|
+
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_gt'>gt</span><span class='lparen'>(</span><span class='id identifier rubyid_fragment'>fragment</span><span class='comma'>,</span> <span class='id identifier rubyid_value'>value</span><span class='rparen'>)</span>
|
1132
|
+
<span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>number.gt</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='id identifier rubyid_fragment'>fragment</span><span class='comma'>,</span> <span class='id identifier rubyid_value'>value</span><span class='rbracket'>]</span>
|
1133
|
+
<span class='kw'>end</span></pre>
|
1134
|
+
</td>
|
1135
|
+
</tr>
|
1136
|
+
</table>
|
1137
|
+
</div>
|
1138
|
+
|
1139
|
+
<div class="method_details ">
|
1140
|
+
<h3 class="signature " id="has-class_method">
|
1141
|
+
|
1142
|
+
+ (<tt>Object</tt>) <strong>has</strong>(fragment)
|
1143
|
+
|
1144
|
+
|
1145
|
+
|
1146
|
+
|
1147
|
+
|
1148
|
+
</h3><table class="source_code">
|
1149
|
+
<tr>
|
1150
|
+
<td>
|
1151
|
+
<pre class="lines">
|
1152
|
+
|
1153
|
+
|
1154
|
+
24
|
1155
|
+
25
|
1156
|
+
26</pre>
|
1157
|
+
</td>
|
1158
|
+
<td>
|
1159
|
+
<pre class="code"><span class="info file"># File 'lib/prismic/predicates.rb', line 24</span>
|
1160
|
+
|
1161
|
+
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_has'>has</span><span class='lparen'>(</span><span class='id identifier rubyid_fragment'>fragment</span><span class='rparen'>)</span>
|
1162
|
+
<span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>has</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='id identifier rubyid_fragment'>fragment</span><span class='rbracket'>]</span>
|
1163
|
+
<span class='kw'>end</span></pre>
|
1164
|
+
</td>
|
1165
|
+
</tr>
|
1166
|
+
</table>
|
1167
|
+
</div>
|
1168
|
+
|
1169
|
+
<div class="method_details ">
|
1170
|
+
<h3 class="signature " id="hour-class_method">
|
1171
|
+
|
1172
|
+
+ (<tt>Object</tt>) <strong>hour</strong>(fragment, hour)
|
1173
|
+
|
1174
|
+
|
1175
|
+
|
1176
|
+
|
1177
|
+
|
1178
|
+
</h3><table class="source_code">
|
1179
|
+
<tr>
|
1180
|
+
<td>
|
1181
|
+
<pre class="lines">
|
1182
|
+
|
1183
|
+
|
1184
|
+
104
|
1185
|
+
105
|
1186
|
+
106</pre>
|
1187
|
+
</td>
|
1188
|
+
<td>
|
1189
|
+
<pre class="code"><span class="info file"># File 'lib/prismic/predicates.rb', line 104</span>
|
1190
|
+
|
1191
|
+
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_hour'>hour</span><span class='lparen'>(</span><span class='id identifier rubyid_fragment'>fragment</span><span class='comma'>,</span> <span class='id identifier rubyid_hour'>hour</span><span class='rparen'>)</span>
|
1192
|
+
<span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>date.hour</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='id identifier rubyid_fragment'>fragment</span><span class='comma'>,</span> <span class='id identifier rubyid_hour'>hour</span><span class='rbracket'>]</span>
|
1193
|
+
<span class='kw'>end</span></pre>
|
1194
|
+
</td>
|
1195
|
+
</tr>
|
1196
|
+
</table>
|
1197
|
+
</div>
|
1198
|
+
|
1199
|
+
<div class="method_details ">
|
1200
|
+
<h3 class="signature " id="hour_after-class_method">
|
1201
|
+
|
1202
|
+
+ (<tt>Object</tt>) <strong>hour_after</strong>(fragment, hour)
|
1203
|
+
|
1204
|
+
|
1205
|
+
|
1206
|
+
|
1207
|
+
|
1208
|
+
</h3><table class="source_code">
|
1209
|
+
<tr>
|
1210
|
+
<td>
|
1211
|
+
<pre class="lines">
|
1212
|
+
|
1213
|
+
|
1214
|
+
112
|
1215
|
+
113
|
1216
|
+
114</pre>
|
1217
|
+
</td>
|
1218
|
+
<td>
|
1219
|
+
<pre class="code"><span class="info file"># File 'lib/prismic/predicates.rb', line 112</span>
|
1220
|
+
|
1221
|
+
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_hour_after'>hour_after</span><span class='lparen'>(</span><span class='id identifier rubyid_fragment'>fragment</span><span class='comma'>,</span> <span class='id identifier rubyid_hour'>hour</span><span class='rparen'>)</span>
|
1222
|
+
<span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>date.hour-after</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='id identifier rubyid_fragment'>fragment</span><span class='comma'>,</span> <span class='id identifier rubyid_hour'>hour</span><span class='rbracket'>]</span>
|
1223
|
+
<span class='kw'>end</span></pre>
|
1224
|
+
</td>
|
1225
|
+
</tr>
|
1226
|
+
</table>
|
1227
|
+
</div>
|
1228
|
+
|
1229
|
+
<div class="method_details ">
|
1230
|
+
<h3 class="signature " id="hour_before-class_method">
|
1231
|
+
|
1232
|
+
+ (<tt>Object</tt>) <strong>hour_before</strong>(fragment, hour)
|
1233
|
+
|
1234
|
+
|
1235
|
+
|
1236
|
+
|
1237
|
+
|
1238
|
+
</h3><table class="source_code">
|
1239
|
+
<tr>
|
1240
|
+
<td>
|
1241
|
+
<pre class="lines">
|
1242
|
+
|
1243
|
+
|
1244
|
+
108
|
1245
|
+
109
|
1246
|
+
110</pre>
|
1247
|
+
</td>
|
1248
|
+
<td>
|
1249
|
+
<pre class="code"><span class="info file"># File 'lib/prismic/predicates.rb', line 108</span>
|
1250
|
+
|
1251
|
+
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_hour_before'>hour_before</span><span class='lparen'>(</span><span class='id identifier rubyid_fragment'>fragment</span><span class='comma'>,</span> <span class='id identifier rubyid_hour'>hour</span><span class='rparen'>)</span>
|
1252
|
+
<span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>date.hour-before</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='id identifier rubyid_fragment'>fragment</span><span class='comma'>,</span> <span class='id identifier rubyid_hour'>hour</span><span class='rbracket'>]</span>
|
1253
|
+
<span class='kw'>end</span></pre>
|
1254
|
+
</td>
|
1255
|
+
</tr>
|
1256
|
+
</table>
|
1257
|
+
</div>
|
1258
|
+
|
1259
|
+
<div class="method_details ">
|
1260
|
+
<h3 class="signature " id="in-class_method">
|
1261
|
+
|
1262
|
+
+ (<tt>Object</tt>) <strong>in</strong>(fragment, value)
|
1263
|
+
|
1264
|
+
|
1265
|
+
|
1266
|
+
|
1267
|
+
|
1268
|
+
</h3><table class="source_code">
|
1269
|
+
<tr>
|
1270
|
+
<td>
|
1271
|
+
<pre class="lines">
|
1272
|
+
|
1273
|
+
|
1274
|
+
8
|
1275
|
+
9
|
1276
|
+
10</pre>
|
1277
|
+
</td>
|
1278
|
+
<td>
|
1279
|
+
<pre class="code"><span class="info file"># File 'lib/prismic/predicates.rb', line 8</span>
|
1280
|
+
|
1281
|
+
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='kw'>in</span><span class='lparen'>(</span><span class='id identifier rubyid_fragment'>fragment</span><span class='comma'>,</span> <span class='id identifier rubyid_value'>value</span><span class='rparen'>)</span>
|
1282
|
+
<span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>in</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='id identifier rubyid_fragment'>fragment</span><span class='comma'>,</span> <span class='id identifier rubyid_value'>value</span><span class='rbracket'>]</span>
|
1283
|
+
<span class='kw'>end</span></pre>
|
1284
|
+
</td>
|
1285
|
+
</tr>
|
1286
|
+
</table>
|
1287
|
+
</div>
|
1288
|
+
|
1289
|
+
<div class="method_details ">
|
1290
|
+
<h3 class="signature " id="in_range-class_method">
|
1291
|
+
|
1292
|
+
+ (<tt>Object</tt>) <strong>in_range</strong>(fragment, before, after)
|
1293
|
+
|
1294
|
+
|
1295
|
+
|
1296
|
+
|
1297
|
+
|
1298
|
+
</h3><table class="source_code">
|
1299
|
+
<tr>
|
1300
|
+
<td>
|
1301
|
+
<pre class="lines">
|
1302
|
+
|
1303
|
+
|
1304
|
+
40
|
1305
|
+
41
|
1306
|
+
42</pre>
|
1307
|
+
</td>
|
1308
|
+
<td>
|
1309
|
+
<pre class="code"><span class="info file"># File 'lib/prismic/predicates.rb', line 40</span>
|
1310
|
+
|
1311
|
+
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_in_range'>in_range</span><span class='lparen'>(</span><span class='id identifier rubyid_fragment'>fragment</span><span class='comma'>,</span> <span class='id identifier rubyid_before'>before</span><span class='comma'>,</span> <span class='id identifier rubyid_after'>after</span><span class='rparen'>)</span>
|
1312
|
+
<span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>number.inRange</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='id identifier rubyid_fragment'>fragment</span><span class='comma'>,</span> <span class='id identifier rubyid_before'>before</span><span class='comma'>,</span> <span class='id identifier rubyid_after'>after</span><span class='rbracket'>]</span>
|
1313
|
+
<span class='kw'>end</span></pre>
|
1314
|
+
</td>
|
1315
|
+
</tr>
|
1316
|
+
</table>
|
1317
|
+
</div>
|
1318
|
+
|
1319
|
+
<div class="method_details ">
|
1320
|
+
<h3 class="signature " id="lt-class_method">
|
1321
|
+
|
1322
|
+
+ (<tt>Object</tt>) <strong>lt</strong>(fragment, value)
|
1323
|
+
|
1324
|
+
|
1325
|
+
|
1326
|
+
|
1327
|
+
|
1328
|
+
</h3><table class="source_code">
|
1329
|
+
<tr>
|
1330
|
+
<td>
|
1331
|
+
<pre class="lines">
|
1332
|
+
|
1333
|
+
|
1334
|
+
36
|
1335
|
+
37
|
1336
|
+
38</pre>
|
1337
|
+
</td>
|
1338
|
+
<td>
|
1339
|
+
<pre class="code"><span class="info file"># File 'lib/prismic/predicates.rb', line 36</span>
|
1340
|
+
|
1341
|
+
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_lt'>lt</span><span class='lparen'>(</span><span class='id identifier rubyid_fragment'>fragment</span><span class='comma'>,</span> <span class='id identifier rubyid_value'>value</span><span class='rparen'>)</span>
|
1342
|
+
<span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>number.lt</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='id identifier rubyid_fragment'>fragment</span><span class='comma'>,</span> <span class='id identifier rubyid_value'>value</span><span class='rbracket'>]</span>
|
1343
|
+
<span class='kw'>end</span></pre>
|
1344
|
+
</td>
|
1345
|
+
</tr>
|
1346
|
+
</table>
|
1347
|
+
</div>
|
1348
|
+
|
1349
|
+
<div class="method_details ">
|
1350
|
+
<h3 class="signature " id="missing-class_method">
|
1351
|
+
|
1352
|
+
+ (<tt>Object</tt>) <strong>missing</strong>(fragment)
|
1353
|
+
|
1354
|
+
|
1355
|
+
|
1356
|
+
|
1357
|
+
|
1358
|
+
</h3><table class="source_code">
|
1359
|
+
<tr>
|
1360
|
+
<td>
|
1361
|
+
<pre class="lines">
|
1362
|
+
|
1363
|
+
|
1364
|
+
28
|
1365
|
+
29
|
1366
|
+
30</pre>
|
1367
|
+
</td>
|
1368
|
+
<td>
|
1369
|
+
<pre class="code"><span class="info file"># File 'lib/prismic/predicates.rb', line 28</span>
|
1370
|
+
|
1371
|
+
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_missing'>missing</span><span class='lparen'>(</span><span class='id identifier rubyid_fragment'>fragment</span><span class='rparen'>)</span>
|
1372
|
+
<span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>missing</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='id identifier rubyid_fragment'>fragment</span><span class='rbracket'>]</span>
|
1373
|
+
<span class='kw'>end</span></pre>
|
1374
|
+
</td>
|
1375
|
+
</tr>
|
1376
|
+
</table>
|
1377
|
+
</div>
|
1378
|
+
|
1379
|
+
<div class="method_details ">
|
1380
|
+
<h3 class="signature " id="month-class_method">
|
1381
|
+
|
1382
|
+
+ (<tt>Object</tt>) <strong>month</strong>(fragment, month)
|
1383
|
+
|
1384
|
+
|
1385
|
+
|
1386
|
+
|
1387
|
+
|
1388
|
+
</h3><table class="source_code">
|
1389
|
+
<tr>
|
1390
|
+
<td>
|
1391
|
+
<pre class="lines">
|
1392
|
+
|
1393
|
+
|
1394
|
+
80
|
1395
|
+
81
|
1396
|
+
82</pre>
|
1397
|
+
</td>
|
1398
|
+
<td>
|
1399
|
+
<pre class="code"><span class="info file"># File 'lib/prismic/predicates.rb', line 80</span>
|
1400
|
+
|
1401
|
+
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_month'>month</span><span class='lparen'>(</span><span class='id identifier rubyid_fragment'>fragment</span><span class='comma'>,</span> <span class='id identifier rubyid_month'>month</span><span class='rparen'>)</span>
|
1402
|
+
<span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>date.month</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='id identifier rubyid_fragment'>fragment</span><span class='comma'>,</span> <span class='id identifier rubyid_month'>month</span><span class='rbracket'>]</span>
|
1403
|
+
<span class='kw'>end</span></pre>
|
1404
|
+
</td>
|
1405
|
+
</tr>
|
1406
|
+
</table>
|
1407
|
+
</div>
|
1408
|
+
|
1409
|
+
<div class="method_details ">
|
1410
|
+
<h3 class="signature " id="month_after-class_method">
|
1411
|
+
|
1412
|
+
+ (<tt>Object</tt>) <strong>month_after</strong>(fragment, month)
|
1413
|
+
|
1414
|
+
|
1415
|
+
|
1416
|
+
|
1417
|
+
|
1418
|
+
</h3><table class="source_code">
|
1419
|
+
<tr>
|
1420
|
+
<td>
|
1421
|
+
<pre class="lines">
|
1422
|
+
|
1423
|
+
|
1424
|
+
88
|
1425
|
+
89
|
1426
|
+
90</pre>
|
1427
|
+
</td>
|
1428
|
+
<td>
|
1429
|
+
<pre class="code"><span class="info file"># File 'lib/prismic/predicates.rb', line 88</span>
|
1430
|
+
|
1431
|
+
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_month_after'>month_after</span><span class='lparen'>(</span><span class='id identifier rubyid_fragment'>fragment</span><span class='comma'>,</span> <span class='id identifier rubyid_month'>month</span><span class='rparen'>)</span>
|
1432
|
+
<span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>date.month-after</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='id identifier rubyid_fragment'>fragment</span><span class='comma'>,</span> <span class='id identifier rubyid_month'>month</span><span class='rbracket'>]</span>
|
1433
|
+
<span class='kw'>end</span></pre>
|
1434
|
+
</td>
|
1435
|
+
</tr>
|
1436
|
+
</table>
|
1437
|
+
</div>
|
1438
|
+
|
1439
|
+
<div class="method_details ">
|
1440
|
+
<h3 class="signature " id="month_before-class_method">
|
1441
|
+
|
1442
|
+
+ (<tt>Object</tt>) <strong>month_before</strong>(fragment, month)
|
1443
|
+
|
1444
|
+
|
1445
|
+
|
1446
|
+
|
1447
|
+
|
1448
|
+
</h3><table class="source_code">
|
1449
|
+
<tr>
|
1450
|
+
<td>
|
1451
|
+
<pre class="lines">
|
1452
|
+
|
1453
|
+
|
1454
|
+
84
|
1455
|
+
85
|
1456
|
+
86</pre>
|
1457
|
+
</td>
|
1458
|
+
<td>
|
1459
|
+
<pre class="code"><span class="info file"># File 'lib/prismic/predicates.rb', line 84</span>
|
1460
|
+
|
1461
|
+
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_month_before'>month_before</span><span class='lparen'>(</span><span class='id identifier rubyid_fragment'>fragment</span><span class='comma'>,</span> <span class='id identifier rubyid_month'>month</span><span class='rparen'>)</span>
|
1462
|
+
<span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>date.month-before</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='id identifier rubyid_fragment'>fragment</span><span class='comma'>,</span> <span class='id identifier rubyid_month'>month</span><span class='rbracket'>]</span>
|
1463
|
+
<span class='kw'>end</span></pre>
|
1464
|
+
</td>
|
1465
|
+
</tr>
|
1466
|
+
</table>
|
1467
|
+
</div>
|
1468
|
+
|
1469
|
+
<div class="method_details ">
|
1470
|
+
<h3 class="signature " id="near-class_method">
|
1471
|
+
|
1472
|
+
+ (<tt>Object</tt>) <strong>near</strong>(fragment, latitude, longitude, radius)
|
1473
|
+
|
1474
|
+
|
1475
|
+
|
1476
|
+
|
1477
|
+
|
1478
|
+
</h3><table class="source_code">
|
1479
|
+
<tr>
|
1480
|
+
<td>
|
1481
|
+
<pre class="lines">
|
1482
|
+
|
1483
|
+
|
1484
|
+
116
|
1485
|
+
117
|
1486
|
+
118</pre>
|
1487
|
+
</td>
|
1488
|
+
<td>
|
1489
|
+
<pre class="code"><span class="info file"># File 'lib/prismic/predicates.rb', line 116</span>
|
1490
|
+
|
1491
|
+
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_near'>near</span><span class='lparen'>(</span><span class='id identifier rubyid_fragment'>fragment</span><span class='comma'>,</span> <span class='id identifier rubyid_latitude'>latitude</span><span class='comma'>,</span> <span class='id identifier rubyid_longitude'>longitude</span><span class='comma'>,</span> <span class='id identifier rubyid_radius'>radius</span><span class='rparen'>)</span>
|
1492
|
+
<span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>geopoint.near</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='id identifier rubyid_fragment'>fragment</span><span class='comma'>,</span> <span class='id identifier rubyid_latitude'>latitude</span><span class='comma'>,</span> <span class='id identifier rubyid_longitude'>longitude</span><span class='comma'>,</span> <span class='id identifier rubyid_radius'>radius</span><span class='rbracket'>]</span>
|
1493
|
+
<span class='kw'>end</span></pre>
|
1494
|
+
</td>
|
1495
|
+
</tr>
|
1496
|
+
</table>
|
1497
|
+
</div>
|
1498
|
+
|
1499
|
+
<div class="method_details ">
|
1500
|
+
<h3 class="signature " id="similar-class_method">
|
1501
|
+
|
1502
|
+
+ (<tt>Object</tt>) <strong>similar</strong>(fragment, value)
|
1503
|
+
|
1504
|
+
|
1505
|
+
|
1506
|
+
|
1507
|
+
|
1508
|
+
</h3><table class="source_code">
|
1509
|
+
<tr>
|
1510
|
+
<td>
|
1511
|
+
<pre class="lines">
|
1512
|
+
|
1513
|
+
|
1514
|
+
20
|
1515
|
+
21
|
1516
|
+
22</pre>
|
1517
|
+
</td>
|
1518
|
+
<td>
|
1519
|
+
<pre class="code"><span class="info file"># File 'lib/prismic/predicates.rb', line 20</span>
|
1520
|
+
|
1521
|
+
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_similar'>similar</span><span class='lparen'>(</span><span class='id identifier rubyid_fragment'>fragment</span><span class='comma'>,</span> <span class='id identifier rubyid_value'>value</span><span class='rparen'>)</span>
|
1522
|
+
<span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>similar</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='id identifier rubyid_fragment'>fragment</span><span class='comma'>,</span> <span class='id identifier rubyid_value'>value</span><span class='rbracket'>]</span>
|
1523
|
+
<span class='kw'>end</span></pre>
|
1524
|
+
</td>
|
1525
|
+
</tr>
|
1526
|
+
</table>
|
1527
|
+
</div>
|
1528
|
+
|
1529
|
+
<div class="method_details ">
|
1530
|
+
<h3 class="signature " id="year-class_method">
|
1531
|
+
|
1532
|
+
+ (<tt>Object</tt>) <strong>year</strong>(fragment, year)
|
1533
|
+
|
1534
|
+
|
1535
|
+
|
1536
|
+
|
1537
|
+
|
1538
|
+
</h3><table class="source_code">
|
1539
|
+
<tr>
|
1540
|
+
<td>
|
1541
|
+
<pre class="lines">
|
1542
|
+
|
1543
|
+
|
1544
|
+
92
|
1545
|
+
93
|
1546
|
+
94</pre>
|
1547
|
+
</td>
|
1548
|
+
<td>
|
1549
|
+
<pre class="code"><span class="info file"># File 'lib/prismic/predicates.rb', line 92</span>
|
1550
|
+
|
1551
|
+
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_year'>year</span><span class='lparen'>(</span><span class='id identifier rubyid_fragment'>fragment</span><span class='comma'>,</span> <span class='id identifier rubyid_year'>year</span><span class='rparen'>)</span>
|
1552
|
+
<span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>date.year</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='id identifier rubyid_fragment'>fragment</span><span class='comma'>,</span> <span class='id identifier rubyid_year'>year</span><span class='rbracket'>]</span>
|
1553
|
+
<span class='kw'>end</span></pre>
|
1554
|
+
</td>
|
1555
|
+
</tr>
|
1556
|
+
</table>
|
1557
|
+
</div>
|
1558
|
+
|
1559
|
+
<div class="method_details ">
|
1560
|
+
<h3 class="signature " id="year_after-class_method">
|
1561
|
+
|
1562
|
+
+ (<tt>Object</tt>) <strong>year_after</strong>(fragment, year)
|
1563
|
+
|
1564
|
+
|
1565
|
+
|
1566
|
+
|
1567
|
+
|
1568
|
+
</h3><table class="source_code">
|
1569
|
+
<tr>
|
1570
|
+
<td>
|
1571
|
+
<pre class="lines">
|
1572
|
+
|
1573
|
+
|
1574
|
+
100
|
1575
|
+
101
|
1576
|
+
102</pre>
|
1577
|
+
</td>
|
1578
|
+
<td>
|
1579
|
+
<pre class="code"><span class="info file"># File 'lib/prismic/predicates.rb', line 100</span>
|
1580
|
+
|
1581
|
+
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_year_after'>year_after</span><span class='lparen'>(</span><span class='id identifier rubyid_fragment'>fragment</span><span class='comma'>,</span> <span class='id identifier rubyid_year'>year</span><span class='rparen'>)</span>
|
1582
|
+
<span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>date.year-after</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='id identifier rubyid_fragment'>fragment</span><span class='comma'>,</span> <span class='id identifier rubyid_year'>year</span><span class='rbracket'>]</span>
|
1583
|
+
<span class='kw'>end</span></pre>
|
1584
|
+
</td>
|
1585
|
+
</tr>
|
1586
|
+
</table>
|
1587
|
+
</div>
|
1588
|
+
|
1589
|
+
<div class="method_details ">
|
1590
|
+
<h3 class="signature " id="year_before-class_method">
|
1591
|
+
|
1592
|
+
+ (<tt>Object</tt>) <strong>year_before</strong>(fragment, year)
|
1593
|
+
|
1594
|
+
|
1595
|
+
|
1596
|
+
|
1597
|
+
|
1598
|
+
</h3><table class="source_code">
|
1599
|
+
<tr>
|
1600
|
+
<td>
|
1601
|
+
<pre class="lines">
|
1602
|
+
|
1603
|
+
|
1604
|
+
96
|
1605
|
+
97
|
1606
|
+
98</pre>
|
1607
|
+
</td>
|
1608
|
+
<td>
|
1609
|
+
<pre class="code"><span class="info file"># File 'lib/prismic/predicates.rb', line 96</span>
|
1610
|
+
|
1611
|
+
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_year_before'>year_before</span><span class='lparen'>(</span><span class='id identifier rubyid_fragment'>fragment</span><span class='comma'>,</span> <span class='id identifier rubyid_year'>year</span><span class='rparen'>)</span>
|
1612
|
+
<span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>date.year-before</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='id identifier rubyid_fragment'>fragment</span><span class='comma'>,</span> <span class='id identifier rubyid_year'>year</span><span class='rbracket'>]</span>
|
1613
|
+
<span class='kw'>end</span></pre>
|
1614
|
+
</td>
|
1615
|
+
</tr>
|
1616
|
+
</table>
|
1617
|
+
</div>
|
1618
|
+
|
1619
|
+
</div>
|
1620
|
+
|
1621
|
+
</div>
|
1622
|
+
|
1623
|
+
<div id="footer">
|
1624
|
+
Generated on Tue Sep 27 10:47:05 2016 by
|
1625
|
+
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
1626
|
+
0.8.7.4 (ruby-2.0.0).
|
1627
|
+
</div>
|
1628
|
+
|
1629
|
+
</body>
|
1630
|
+
</html>
|