prismic.io 1.4.3 → 1.4.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +2 -2
- data/docs/Prismic/API/BadPrismicResponseError.html +44 -43
- data/docs/Prismic/API/OAuth.html +99 -98
- data/docs/Prismic/API/PrismicWSAuthError.html +67 -66
- data/docs/Prismic/API/PrismicWSConnectionError.html +51 -50
- data/docs/Prismic/API.html +434 -280
- data/docs/Prismic/BasicNullCache.html +49 -48
- data/docs/Prismic/DefaultHTTPClient.html +85 -79
- data/docs/Prismic/Document.html +279 -83
- data/docs/Prismic/Error.html +52 -51
- data/docs/Prismic/Experiment.html +60 -59
- data/docs/Prismic/Experiments.html +61 -60
- data/docs/Prismic/Field.html +54 -53
- data/docs/Prismic/Form.html +70 -69
- data/docs/Prismic/Fragments/Color.html +60 -59
- data/docs/Prismic/Fragments/Date.html +52 -51
- data/docs/Prismic/Fragments/DocumentLink.html +78 -76
- data/docs/Prismic/Fragments/Embed.html +60 -59
- data/docs/Prismic/Fragments/FileLink.html +58 -57
- data/docs/Prismic/Fragments/Fragment.html +49 -48
- data/docs/Prismic/Fragments/GeoPoint.html +54 -53
- data/docs/Prismic/Fragments/Group.html +65 -63
- data/docs/Prismic/Fragments/GroupDocument.html +57 -55
- data/docs/Prismic/Fragments/Image/View.html +64 -63
- data/docs/Prismic/Fragments/Image/ViewDoesNotExistException.html +44 -43
- data/docs/Prismic/Fragments/Image.html +69 -68
- data/docs/Prismic/Fragments/ImageLink.html +50 -49
- data/docs/Prismic/Fragments/Link.html +53 -52
- data/docs/Prismic/Fragments/Multiple.html +58 -57
- data/docs/Prismic/Fragments/Number.html +54 -53
- data/docs/Prismic/Fragments/Select.html +52 -51
- data/docs/Prismic/Fragments/Separator.html +54 -53
- data/docs/Prismic/Fragments/Slice.html +58 -57
- data/docs/Prismic/Fragments/SliceZone.html +54 -53
- data/docs/Prismic/Fragments/StructuredText/Block/Embed.html +52 -51
- data/docs/Prismic/Fragments/StructuredText/Block/Heading.html +52 -51
- data/docs/Prismic/Fragments/StructuredText/Block/Image.html +66 -65
- data/docs/Prismic/Fragments/StructuredText/Block/ListItem.html +52 -51
- data/docs/Prismic/Fragments/StructuredText/Block/Paragraph.html +47 -46
- data/docs/Prismic/Fragments/StructuredText/Block/Preformatted.html +47 -46
- data/docs/Prismic/Fragments/StructuredText/Block/Text.html +68 -64
- data/docs/Prismic/Fragments/StructuredText/Block.html +47 -46
- data/docs/Prismic/Fragments/StructuredText/BlockGroup.html +54 -53
- data/docs/Prismic/Fragments/StructuredText/Span/Em.html +47 -46
- data/docs/Prismic/Fragments/StructuredText/Span/Hyperlink.html +53 -52
- data/docs/Prismic/Fragments/StructuredText/Span/Label.html +52 -51
- data/docs/Prismic/Fragments/StructuredText/Span/Strong.html +47 -46
- data/docs/Prismic/Fragments/StructuredText/Span.html +52 -51
- data/docs/Prismic/Fragments/StructuredText.html +59 -58
- data/docs/Prismic/Fragments/Text.html +54 -53
- data/docs/Prismic/Fragments/Timestamp.html +52 -51
- data/docs/Prismic/Fragments/WebLink.html +50 -49
- data/docs/Prismic/Fragments.html +39 -39
- data/docs/Prismic/HtmlSerializer.html +57 -56
- data/docs/Prismic/JsonParser.html +145 -143
- data/docs/Prismic/LinkResolver.html +73 -72
- data/docs/Prismic/LruCache.html +70 -69
- data/docs/Prismic/Predicates.html +261 -209
- data/docs/Prismic/Ref.html +86 -85
- data/docs/Prismic/Response.html +75 -73
- data/docs/Prismic/SearchForm/AuthenticationException.html +44 -43
- data/docs/Prismic/SearchForm/AuthorizationException.html +44 -43
- data/docs/Prismic/SearchForm/FormSearchException.html +44 -43
- data/docs/Prismic/SearchForm/NoRefSetException.html +44 -43
- data/docs/Prismic/SearchForm/RefNotFoundException.html +44 -43
- data/docs/Prismic/SearchForm/UnsupportedFormKind.html +44 -43
- data/docs/Prismic/SearchForm.html +97 -96
- data/docs/Prismic/Variation.html +57 -56
- data/docs/Prismic/WithFragments.html +115 -113
- data/docs/Prismic.html +91 -93
- data/docs/_index.html +32 -35
- data/docs/class_list.html +24 -27
- data/docs/css/full_list.css +32 -31
- data/docs/css/style.css +244 -91
- data/docs/file.README.html +39 -74
- data/docs/file_list.html +26 -26
- data/docs/frames.html +7 -16
- data/docs/index.html +39 -74
- data/docs/js/app.js +101 -77
- data/docs/js/full_list.js +170 -132
- data/docs/method_list.html +1995 -1189
- data/docs/top-level-namespace.html +34 -36
- data/lib/prismic/api.rb +10 -1
- data/lib/prismic/fragments/link.rb +3 -2
- data/lib/prismic/json_parsers.rb +14 -0
- data/lib/prismic/version.rb +1 -1
- data/lib/prismic.rb +47 -5
- data/spec/cache_spec.rb +2 -2
- data/spec/fragments_spec.rb +8 -1
- data/spec/json_parsers_spec.rb +13 -1
- data/spec/prismic_spec.rb +14 -7
- data/spec/responses_mocks/document.json +13 -0
- data/spec/simple_search_spec.rb +9 -0
- metadata +2 -2
@@ -1,12 +1,12 @@
|
|
1
|
-
<!DOCTYPE html
|
2
|
-
|
3
|
-
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
4
3
|
<head>
|
5
|
-
<meta
|
4
|
+
<meta charset="utf-8">
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
6
6
|
<title>
|
7
7
|
Module: Prismic::WithFragments
|
8
8
|
|
9
|
-
— Documentation by YARD 0.8
|
9
|
+
— Documentation by YARD 0.9.8
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
@@ -15,9 +15,8 @@
|
|
15
15
|
<link rel="stylesheet" href="../css/common.css" type="text/css" charset="utf-8" />
|
16
16
|
|
17
17
|
<script type="text/javascript" charset="utf-8">
|
18
|
-
|
18
|
+
pathId = "Prismic::WithFragments";
|
19
19
|
relpath = '../';
|
20
|
-
framesUrl = "../frames.html#!Prismic/WithFragments.html";
|
21
20
|
</script>
|
22
21
|
|
23
22
|
|
@@ -28,69 +27,71 @@
|
|
28
27
|
|
29
28
|
</head>
|
30
29
|
<body>
|
31
|
-
<div
|
32
|
-
<
|
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">
|
33
38
|
|
34
39
|
<a href="../_index.html">Index (W)</a> »
|
35
40
|
<span class='title'><span class='object_link'><a href="../Prismic.html" title="Prismic (module)">Prismic</a></span></span>
|
36
41
|
»
|
37
42
|
<span class="title">WithFragments</span>
|
38
43
|
|
39
|
-
|
40
|
-
<div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
|
41
44
|
</div>
|
42
45
|
|
43
|
-
|
46
|
+
<div id="search">
|
44
47
|
|
45
48
|
<a class="full_list_link" id="class_list_link"
|
46
49
|
href="../class_list.html">
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
</a>
|
54
|
-
|
55
|
-
<a class="full_list_link" id="file_list_link"
|
56
|
-
href="../file_list.html">
|
57
|
-
File List
|
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>
|
58
56
|
</a>
|
59
57
|
|
60
58
|
</div>
|
61
|
-
|
62
|
-
|
59
|
+
<div class="clear"></div>
|
60
|
+
</div>
|
63
61
|
|
64
|
-
|
65
|
-
|
66
|
-
<div id="content"><h1>Module: Prismic::WithFragments
|
62
|
+
<div id="content"><h1>Module: Prismic::WithFragments
|
67
63
|
|
68
64
|
|
69
65
|
|
70
66
|
</h1>
|
67
|
+
<div class="box_info">
|
68
|
+
|
71
69
|
|
72
|
-
<dl class="box">
|
73
70
|
|
74
71
|
|
75
|
-
|
76
72
|
|
77
|
-
|
78
|
-
<dt class="r1">Includes:</dt>
|
79
|
-
<dd class="r1">Enumerable</dd>
|
80
|
-
|
81
|
-
|
82
73
|
|
74
|
+
<dl>
|
75
|
+
<dt>Includes:</dt>
|
76
|
+
<dd>Enumerable</dd>
|
77
|
+
</dl>
|
83
78
|
|
84
|
-
<dt class="r2">Included in:</dt>
|
85
|
-
<dd class="r2"><span class='object_link'><a href="Document.html" title="Prismic::Document (class)">Document</a></span>, <span class='object_link'><a href="Fragments/DocumentLink.html" title="Prismic::Fragments::DocumentLink (class)">Fragments::DocumentLink</a></span>, <span class='object_link'><a href="Fragments/GroupDocument.html" title="Prismic::Fragments::GroupDocument (class)">Fragments::GroupDocument</a></span></dd>
|
86
|
-
|
87
79
|
|
80
|
+
|
88
81
|
|
89
|
-
|
90
|
-
<
|
82
|
+
<dl>
|
83
|
+
<dt>Included in:</dt>
|
84
|
+
<dd><span class='object_link'><a href="Document.html" title="Prismic::Document (class)">Document</a></span>, <span class='object_link'><a href="Fragments/DocumentLink.html" title="Prismic::Fragments::DocumentLink (class)">Fragments::DocumentLink</a></span>, <span class='object_link'><a href="Fragments/GroupDocument.html" title="Prismic::Fragments::GroupDocument (class)">Fragments::GroupDocument</a></span></dd>
|
85
|
+
</dl>
|
91
86
|
|
92
|
-
|
93
|
-
|
87
|
+
|
88
|
+
|
89
|
+
<dl>
|
90
|
+
<dt>Defined in:</dt>
|
91
|
+
<dd>lib/prismic/with_fragments.rb</dd>
|
92
|
+
</dl>
|
93
|
+
|
94
|
+
</div>
|
94
95
|
|
95
96
|
<h2>Overview</h2><div class="docstring">
|
96
97
|
<div class="discussion">
|
@@ -106,13 +107,13 @@
|
|
106
107
|
|
107
108
|
|
108
109
|
|
109
|
-
<h2>Instance Attribute Summary <small
|
110
|
+
<h2>Instance Attribute Summary <small><a href="#" class="summary_toggle">collapse</a></small></h2>
|
110
111
|
<ul class="summary">
|
111
112
|
|
112
113
|
<li class="public ">
|
113
114
|
<span class="summary_signature">
|
114
115
|
|
115
|
-
<a href="#fragments-instance_method" title="#fragments (instance method)"
|
116
|
+
<a href="#fragments-instance_method" title="#fragments (instance method)">#<strong>fragments</strong> ⇒ Hash{String => Fragment} </a>
|
116
117
|
|
117
118
|
|
118
119
|
|
@@ -142,7 +143,7 @@
|
|
142
143
|
|
143
144
|
<h2>
|
144
145
|
Instance Method Summary
|
145
|
-
<small
|
146
|
+
<small><a href="#" class="summary_toggle">collapse</a></small>
|
146
147
|
</h2>
|
147
148
|
|
148
149
|
<ul class="summary">
|
@@ -150,7 +151,7 @@
|
|
150
151
|
<li class="public ">
|
151
152
|
<span class="summary_signature">
|
152
153
|
|
153
|
-
<a href="
|
154
|
+
<a href="#[]-instance_method" title="#[] (instance method)">#<strong>[]</strong>(field) ⇒ Fragments::Fragment </a>
|
154
155
|
|
155
156
|
|
156
157
|
|
@@ -175,7 +176,7 @@
|
|
175
176
|
<li class="public ">
|
176
177
|
<span class="summary_signature">
|
177
178
|
|
178
|
-
<a href="#as_html-instance_method" title="#as_html (instance method)"
|
179
|
+
<a href="#as_html-instance_method" title="#as_html (instance method)">#<strong>as_html</strong>(link_resolver) ⇒ String </a>
|
179
180
|
|
180
181
|
|
181
182
|
|
@@ -198,7 +199,7 @@
|
|
198
199
|
<li class="public ">
|
199
200
|
<span class="summary_signature">
|
200
201
|
|
201
|
-
<a href="#as_text-instance_method" title="#as_text (instance method)"
|
202
|
+
<a href="#as_text-instance_method" title="#as_text (instance method)">#<strong>as_text</strong> ⇒ String </a>
|
202
203
|
|
203
204
|
|
204
205
|
|
@@ -221,7 +222,7 @@
|
|
221
222
|
<li class="public ">
|
222
223
|
<span class="summary_signature">
|
223
224
|
|
224
|
-
<a href="#each-instance_method" title="#each (instance method)"
|
225
|
+
<a href="#each-instance_method" title="#each (instance method)">#<strong>each</strong> {|name, fragment| ... } ⇒ Object </a>
|
225
226
|
|
226
227
|
|
227
228
|
|
@@ -243,7 +244,7 @@
|
|
243
244
|
<li class="public ">
|
244
245
|
<span class="summary_signature">
|
245
246
|
|
246
|
-
<a href="#first_title-instance_method" title="#first_title (instance method)"
|
247
|
+
<a href="#first_title-instance_method" title="#first_title (instance method)">#<strong>first_title</strong> ⇒ String </a>
|
247
248
|
|
248
249
|
|
249
250
|
|
@@ -266,7 +267,7 @@
|
|
266
267
|
<li class="public ">
|
267
268
|
<span class="summary_signature">
|
268
269
|
|
269
|
-
<a href="#get_color-instance_method" title="#get_color (instance method)"
|
270
|
+
<a href="#get_color-instance_method" title="#get_color (instance method)">#<strong>get_color</strong>(field) ⇒ Fragments::Color </a>
|
270
271
|
|
271
272
|
|
272
273
|
|
@@ -288,7 +289,7 @@
|
|
288
289
|
<li class="public ">
|
289
290
|
<span class="summary_signature">
|
290
291
|
|
291
|
-
<a href="#get_date-instance_method" title="#get_date (instance method)"
|
292
|
+
<a href="#get_date-instance_method" title="#get_date (instance method)">#<strong>get_date</strong>(field) ⇒ Fragments::Date </a>
|
292
293
|
|
293
294
|
|
294
295
|
|
@@ -310,7 +311,7 @@
|
|
310
311
|
<li class="public ">
|
311
312
|
<span class="summary_signature">
|
312
313
|
|
313
|
-
<a href="#get_embed-instance_method" title="#get_embed (instance method)"
|
314
|
+
<a href="#get_embed-instance_method" title="#get_embed (instance method)">#<strong>get_embed</strong>(field) ⇒ Fragments::Embed </a>
|
314
315
|
|
315
316
|
|
316
317
|
|
@@ -332,7 +333,7 @@
|
|
332
333
|
<li class="public ">
|
333
334
|
<span class="summary_signature">
|
334
335
|
|
335
|
-
<a href="#get_geopoint-instance_method" title="#get_geopoint (instance method)"
|
336
|
+
<a href="#get_geopoint-instance_method" title="#get_geopoint (instance method)">#<strong>get_geopoint</strong>(field) ⇒ Fragments::GeoPoint </a>
|
336
337
|
|
337
338
|
|
338
339
|
|
@@ -354,7 +355,7 @@
|
|
354
355
|
<li class="public ">
|
355
356
|
<span class="summary_signature">
|
356
357
|
|
357
|
-
<a href="#get_group-instance_method" title="#get_group (instance method)"
|
358
|
+
<a href="#get_group-instance_method" title="#get_group (instance method)">#<strong>get_group</strong>(field) ⇒ Fragments::Group </a>
|
358
359
|
|
359
360
|
|
360
361
|
|
@@ -376,7 +377,7 @@
|
|
376
377
|
<li class="public ">
|
377
378
|
<span class="summary_signature">
|
378
379
|
|
379
|
-
<a href="#get_image-instance_method" title="#get_image (instance method)"
|
380
|
+
<a href="#get_image-instance_method" title="#get_image (instance method)">#<strong>get_image</strong>(field) ⇒ Fragments::Image </a>
|
380
381
|
|
381
382
|
|
382
383
|
|
@@ -398,7 +399,7 @@
|
|
398
399
|
<li class="public ">
|
399
400
|
<span class="summary_signature">
|
400
401
|
|
401
|
-
<a href="#get_link-instance_method" title="#get_link (instance method)"
|
402
|
+
<a href="#get_link-instance_method" title="#get_link (instance method)">#<strong>get_link</strong>(field) ⇒ Fragments::Link </a>
|
402
403
|
|
403
404
|
|
404
405
|
|
@@ -420,7 +421,7 @@
|
|
420
421
|
<li class="public ">
|
421
422
|
<span class="summary_signature">
|
422
423
|
|
423
|
-
<a href="#get_number-instance_method" title="#get_number (instance method)"
|
424
|
+
<a href="#get_number-instance_method" title="#get_number (instance method)">#<strong>get_number</strong>(field) ⇒ Fragments::Number </a>
|
424
425
|
|
425
426
|
|
426
427
|
|
@@ -442,7 +443,7 @@
|
|
442
443
|
<li class="public ">
|
443
444
|
<span class="summary_signature">
|
444
445
|
|
445
|
-
<a href="#get_slice_zone-instance_method" title="#get_slice_zone (instance method)"
|
446
|
+
<a href="#get_slice_zone-instance_method" title="#get_slice_zone (instance method)">#<strong>get_slice_zone</strong>(field) ⇒ Object </a>
|
446
447
|
|
447
448
|
|
448
449
|
|
@@ -464,7 +465,7 @@
|
|
464
465
|
<li class="public ">
|
465
466
|
<span class="summary_signature">
|
466
467
|
|
467
|
-
<a href="#get_structured_text-instance_method" title="#get_structured_text (instance method)"
|
468
|
+
<a href="#get_structured_text-instance_method" title="#get_structured_text (instance method)">#<strong>get_structured_text</strong>(field) ⇒ Fragments::StructuredText </a>
|
468
469
|
|
469
470
|
|
470
471
|
|
@@ -486,7 +487,7 @@
|
|
486
487
|
<li class="public ">
|
487
488
|
<span class="summary_signature">
|
488
489
|
|
489
|
-
<a href="#get_text-instance_method" title="#get_text (instance method)"
|
490
|
+
<a href="#get_text-instance_method" title="#get_text (instance method)">#<strong>get_text</strong>(field) ⇒ Fragments::Text </a>
|
490
491
|
|
491
492
|
|
492
493
|
|
@@ -508,7 +509,7 @@
|
|
508
509
|
<li class="public ">
|
509
510
|
<span class="summary_signature">
|
510
511
|
|
511
|
-
<a href="#get_timestamp-instance_method" title="#get_timestamp (instance method)"
|
512
|
+
<a href="#get_timestamp-instance_method" title="#get_timestamp (instance method)">#<strong>get_timestamp</strong>(field) ⇒ Fragments::Timestamp </a>
|
512
513
|
|
513
514
|
|
514
515
|
|
@@ -530,7 +531,7 @@
|
|
530
531
|
<li class="public ">
|
531
532
|
<span class="summary_signature">
|
532
533
|
|
533
|
-
<a href="#length-instance_method" title="#length (instance method)"
|
534
|
+
<a href="#length-instance_method" title="#length (instance method)">#<strong>length</strong> ⇒ Fixum </a>
|
534
535
|
|
535
536
|
|
536
537
|
|
@@ -554,7 +555,7 @@
|
|
554
555
|
<li class="public ">
|
555
556
|
<span class="summary_signature">
|
556
557
|
|
557
|
-
<a href="#linked_documents-instance_method" title="#linked_documents (instance method)"
|
558
|
+
<a href="#linked_documents-instance_method" title="#linked_documents (instance method)">#<strong>linked_documents</strong> ⇒ Array<LinkedDocument> </a>
|
558
559
|
|
559
560
|
|
560
561
|
|
@@ -586,7 +587,7 @@
|
|
586
587
|
<div class="method_details first">
|
587
588
|
<h3 class="signature first" id="fragments-instance_method">
|
588
589
|
|
589
|
-
|
590
|
+
#<strong>fragments</strong> ⇒ <tt>Hash{String => Fragment}</tt>
|
590
591
|
|
591
592
|
|
592
593
|
|
@@ -645,7 +646,7 @@
|
|
645
646
|
<div class="method_details first">
|
646
647
|
<h3 class="signature first" id="[]-instance_method">
|
647
648
|
|
648
|
-
|
649
|
+
#<strong>[]</strong>(field) ⇒ <tt><span class='object_link'><a href="Fragments/Fragment.html" title="Prismic::Fragments::Fragment (class)">Fragments::Fragment</a></span></tt>
|
649
650
|
|
650
651
|
|
651
652
|
|
@@ -712,7 +713,7 @@
|
|
712
713
|
<div class="method_details ">
|
713
714
|
<h3 class="signature " id="as_html-instance_method">
|
714
715
|
|
715
|
-
|
716
|
+
#<strong>as_html</strong>(link_resolver) ⇒ <tt>String</tt>
|
716
717
|
|
717
718
|
|
718
719
|
|
@@ -793,7 +794,7 @@ application's specific URL</p>
|
|
793
794
|
<div class="method_details ">
|
794
795
|
<h3 class="signature " id="as_text-instance_method">
|
795
796
|
|
796
|
-
|
797
|
+
#<strong>as_text</strong> ⇒ <tt>String</tt>
|
797
798
|
|
798
799
|
|
799
800
|
|
@@ -850,7 +851,7 @@ application's specific URL</p>
|
|
850
851
|
<div class="method_details ">
|
851
852
|
<h3 class="signature " id="each-instance_method">
|
852
853
|
|
853
|
-
|
854
|
+
#<strong>each</strong> {|name, fragment| ... } ⇒ <tt>Object</tt>
|
854
855
|
|
855
856
|
|
856
857
|
|
@@ -915,7 +916,7 @@ application's specific URL</p>
|
|
915
916
|
<div class="method_details ">
|
916
917
|
<h3 class="signature " id="first_title-instance_method">
|
917
918
|
|
918
|
-
|
919
|
+
#<strong>first_title</strong> ⇒ <tt>String</tt>
|
919
920
|
|
920
921
|
|
921
922
|
|
@@ -979,9 +980,9 @@ application's specific URL</p>
|
|
979
980
|
</span> <span class='id identifier rubyid_title'>title</span> <span class='op'>=</span> <span class='kw'>false</span>
|
980
981
|
<span class='id identifier rubyid_max_level'>max_level</span> <span class='op'>=</span> <span class='int'>6</span> <span class='comment'># any title with a higher level kicks the current one out
|
981
982
|
</span> <span class='ivar'>@fragments</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__'>_</span><span class='comma'>,</span> <span class='id identifier rubyid_fragment'>fragment</span><span class='op'>|</span>
|
982
|
-
<span class='kw'>if</span> <span class='id identifier rubyid_fragment'>fragment</span><span class='period'>.</span><span class='id identifier rubyid_is_a?'>is_a?</span> <span class='const'>Prismic</span><span class='op'>::</span><span class='const'>Fragments</span><span class='op'>::</span><span class='const'>StructuredText</span>
|
983
|
+
<span class='kw'>if</span> <span class='id identifier rubyid_fragment'>fragment</span><span class='period'>.</span><span class='id identifier rubyid_is_a?'>is_a?</span> <span class='const'><span class='object_link'><a href="../Prismic.html" title="Prismic (module)">Prismic</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Fragments.html" title="Prismic::Fragments (module)">Fragments</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Fragments/StructuredText.html" title="Prismic::Fragments::StructuredText (class)">StructuredText</a></span></span>
|
983
984
|
<span class='id identifier rubyid_fragment'>fragment</span><span class='period'>.</span><span class='id identifier rubyid_blocks'>blocks</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_block'>block</span><span class='op'>|</span>
|
984
|
-
<span class='kw'>if</span> <span class='id identifier rubyid_block'>block</span><span class='period'>.</span><span class='id identifier rubyid_is_a?'>is_a?</span><span class='lparen'>(</span><span class='const'>Prismic</span><span class='op'>::</span><span class='const'>Fragments</span><span class='op'>::</span><span class='const'>StructuredText</span><span class='op'>::</span><span class='const'>Block</span><span class='op'>::</span><span class='const'>Heading</span><span class='rparen'>)</span>
|
985
|
+
<span class='kw'>if</span> <span class='id identifier rubyid_block'>block</span><span class='period'>.</span><span class='id identifier rubyid_is_a?'>is_a?</span><span class='lparen'>(</span><span class='const'><span class='object_link'><a href="../Prismic.html" title="Prismic (module)">Prismic</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Fragments.html" title="Prismic::Fragments (module)">Fragments</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Fragments/StructuredText.html" title="Prismic::Fragments::StructuredText (class)">StructuredText</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Fragments/StructuredText/Block.html" title="Prismic::Fragments::StructuredText::Block (class)">Block</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Fragments/StructuredText/Block/Heading.html" title="Prismic::Fragments::StructuredText::Block::Heading (class)">Heading</a></span></span><span class='rparen'>)</span>
|
985
986
|
<span class='kw'>if</span> <span class='id identifier rubyid_block'>block</span><span class='period'>.</span><span class='id identifier rubyid_level'>level</span> <span class='op'><</span> <span class='id identifier rubyid_max_level'>max_level</span>
|
986
987
|
<span class='id identifier rubyid_title'>title</span> <span class='op'>=</span> <span class='id identifier rubyid_block'>block</span><span class='period'>.</span><span class='id identifier rubyid_text'>text</span>
|
987
988
|
<span class='id identifier rubyid_max_level'>max_level</span> <span class='op'>=</span> <span class='id identifier rubyid_block'>block</span><span class='period'>.</span><span class='id identifier rubyid_level'>level</span> <span class='comment'># new maximum
|
@@ -1000,7 +1001,7 @@ application's specific URL</p>
|
|
1000
1001
|
<div class="method_details ">
|
1001
1002
|
<h3 class="signature " id="get_color-instance_method">
|
1002
1003
|
|
1003
|
-
|
1004
|
+
#<strong>get_color</strong>(field) ⇒ <tt><span class='object_link'><a href="Fragments/Color.html" title="Prismic::Fragments::Color (class)">Fragments::Color</a></span></tt>
|
1004
1005
|
|
1005
1006
|
|
1006
1007
|
|
@@ -1045,7 +1046,7 @@ application's specific URL</p>
|
|
1045
1046
|
|
1046
1047
|
<span class='kw'>def</span> <span class='id identifier rubyid_get_color'>get_color</span><span class='lparen'>(</span><span class='id identifier rubyid_field'>field</span><span class='rparen'>)</span>
|
1047
1048
|
<span class='id identifier rubyid_fragment'>fragment</span> <span class='op'>=</span> <span class='kw'>self</span><span class='lbracket'>[</span><span class='id identifier rubyid_field'>field</span><span class='rbracket'>]</span>
|
1048
|
-
<span class='kw'>return</span> <span class='kw'>nil</span> <span class='kw'>unless</span> <span class='id identifier rubyid_fragment'>fragment</span><span class='period'>.</span><span class='id identifier rubyid_is_a?'>is_a?</span> <span class='const'>Prismic</span><span class='op'>::</span><span class='const'>Fragments</span><span class='op'>::</span><span class='const'>Color</span>
|
1049
|
+
<span class='kw'>return</span> <span class='kw'>nil</span> <span class='kw'>unless</span> <span class='id identifier rubyid_fragment'>fragment</span><span class='period'>.</span><span class='id identifier rubyid_is_a?'>is_a?</span> <span class='const'><span class='object_link'><a href="../Prismic.html" title="Prismic (module)">Prismic</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Fragments.html" title="Prismic::Fragments (module)">Fragments</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Fragments/Color.html" title="Prismic::Fragments::Color (class)">Color</a></span></span>
|
1049
1050
|
<span class='id identifier rubyid_fragment'>fragment</span>
|
1050
1051
|
<span class='kw'>end</span></pre>
|
1051
1052
|
</td>
|
@@ -1056,7 +1057,7 @@ application's specific URL</p>
|
|
1056
1057
|
<div class="method_details ">
|
1057
1058
|
<h3 class="signature " id="get_date-instance_method">
|
1058
1059
|
|
1059
|
-
|
1060
|
+
#<strong>get_date</strong>(field) ⇒ <tt><span class='object_link'><a href="Fragments/Date.html" title="Prismic::Fragments::Date (class)">Fragments::Date</a></span></tt>
|
1060
1061
|
|
1061
1062
|
|
1062
1063
|
|
@@ -1101,7 +1102,7 @@ application's specific URL</p>
|
|
1101
1102
|
|
1102
1103
|
<span class='kw'>def</span> <span class='id identifier rubyid_get_date'>get_date</span><span class='lparen'>(</span><span class='id identifier rubyid_field'>field</span><span class='rparen'>)</span>
|
1103
1104
|
<span class='id identifier rubyid_fragment'>fragment</span> <span class='op'>=</span> <span class='kw'>self</span><span class='lbracket'>[</span><span class='id identifier rubyid_field'>field</span><span class='rbracket'>]</span>
|
1104
|
-
<span class='kw'>return</span> <span class='kw'>nil</span> <span class='kw'>unless</span> <span class='id identifier rubyid_fragment'>fragment</span><span class='period'>.</span><span class='id identifier rubyid_is_a?'>is_a?</span> <span class='const'>Prismic</span><span class='op'>::</span><span class='const'>Fragments</span><span class='op'>::</span><span class='const'>Date</span>
|
1105
|
+
<span class='kw'>return</span> <span class='kw'>nil</span> <span class='kw'>unless</span> <span class='id identifier rubyid_fragment'>fragment</span><span class='period'>.</span><span class='id identifier rubyid_is_a?'>is_a?</span> <span class='const'><span class='object_link'><a href="../Prismic.html" title="Prismic (module)">Prismic</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Fragments.html" title="Prismic::Fragments (module)">Fragments</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Fragments/Date.html" title="Prismic::Fragments::Date (class)">Date</a></span></span>
|
1105
1106
|
<span class='id identifier rubyid_fragment'>fragment</span>
|
1106
1107
|
<span class='kw'>end</span></pre>
|
1107
1108
|
</td>
|
@@ -1112,7 +1113,7 @@ application's specific URL</p>
|
|
1112
1113
|
<div class="method_details ">
|
1113
1114
|
<h3 class="signature " id="get_embed-instance_method">
|
1114
1115
|
|
1115
|
-
|
1116
|
+
#<strong>get_embed</strong>(field) ⇒ <tt><span class='object_link'><a href="Fragments/Embed.html" title="Prismic::Fragments::Embed (class)">Fragments::Embed</a></span></tt>
|
1116
1117
|
|
1117
1118
|
|
1118
1119
|
|
@@ -1157,7 +1158,7 @@ application's specific URL</p>
|
|
1157
1158
|
|
1158
1159
|
<span class='kw'>def</span> <span class='id identifier rubyid_get_embed'>get_embed</span><span class='lparen'>(</span><span class='id identifier rubyid_field'>field</span><span class='rparen'>)</span>
|
1159
1160
|
<span class='id identifier rubyid_fragment'>fragment</span> <span class='op'>=</span> <span class='kw'>self</span><span class='lbracket'>[</span><span class='id identifier rubyid_field'>field</span><span class='rbracket'>]</span>
|
1160
|
-
<span class='kw'>return</span> <span class='kw'>nil</span> <span class='kw'>unless</span> <span class='id identifier rubyid_fragment'>fragment</span><span class='period'>.</span><span class='id identifier rubyid_is_a?'>is_a?</span> <span class='const'>Prismic</span><span class='op'>::</span><span class='const'>Fragments</span><span class='op'>::</span><span class='const'>Embed</span>
|
1161
|
+
<span class='kw'>return</span> <span class='kw'>nil</span> <span class='kw'>unless</span> <span class='id identifier rubyid_fragment'>fragment</span><span class='period'>.</span><span class='id identifier rubyid_is_a?'>is_a?</span> <span class='const'><span class='object_link'><a href="../Prismic.html" title="Prismic (module)">Prismic</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Fragments.html" title="Prismic::Fragments (module)">Fragments</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Fragments/Embed.html" title="Prismic::Fragments::Embed (class)">Embed</a></span></span>
|
1161
1162
|
<span class='id identifier rubyid_fragment'>fragment</span>
|
1162
1163
|
<span class='kw'>end</span></pre>
|
1163
1164
|
</td>
|
@@ -1168,7 +1169,7 @@ application's specific URL</p>
|
|
1168
1169
|
<div class="method_details ">
|
1169
1170
|
<h3 class="signature " id="get_geopoint-instance_method">
|
1170
1171
|
|
1171
|
-
|
1172
|
+
#<strong>get_geopoint</strong>(field) ⇒ <tt><span class='object_link'><a href="Fragments/GeoPoint.html" title="Prismic::Fragments::GeoPoint (class)">Fragments::GeoPoint</a></span></tt>
|
1172
1173
|
|
1173
1174
|
|
1174
1175
|
|
@@ -1213,7 +1214,7 @@ application's specific URL</p>
|
|
1213
1214
|
|
1214
1215
|
<span class='kw'>def</span> <span class='id identifier rubyid_get_geopoint'>get_geopoint</span><span class='lparen'>(</span><span class='id identifier rubyid_field'>field</span><span class='rparen'>)</span>
|
1215
1216
|
<span class='id identifier rubyid_fragment'>fragment</span> <span class='op'>=</span> <span class='kw'>self</span><span class='lbracket'>[</span><span class='id identifier rubyid_field'>field</span><span class='rbracket'>]</span>
|
1216
|
-
<span class='kw'>return</span> <span class='kw'>nil</span> <span class='kw'>unless</span> <span class='id identifier rubyid_fragment'>fragment</span><span class='period'>.</span><span class='id identifier rubyid_is_a?'>is_a?</span> <span class='const'>Prismic</span><span class='op'>::</span><span class='const'>Fragments</span><span class='op'>::</span><span class='const'>GeoPoint</span>
|
1217
|
+
<span class='kw'>return</span> <span class='kw'>nil</span> <span class='kw'>unless</span> <span class='id identifier rubyid_fragment'>fragment</span><span class='period'>.</span><span class='id identifier rubyid_is_a?'>is_a?</span> <span class='const'><span class='object_link'><a href="../Prismic.html" title="Prismic (module)">Prismic</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Fragments.html" title="Prismic::Fragments (module)">Fragments</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Fragments/GeoPoint.html" title="Prismic::Fragments::GeoPoint (class)">GeoPoint</a></span></span>
|
1217
1218
|
<span class='id identifier rubyid_fragment'>fragment</span>
|
1218
1219
|
<span class='kw'>end</span></pre>
|
1219
1220
|
</td>
|
@@ -1224,7 +1225,7 @@ application's specific URL</p>
|
|
1224
1225
|
<div class="method_details ">
|
1225
1226
|
<h3 class="signature " id="get_group-instance_method">
|
1226
1227
|
|
1227
|
-
|
1228
|
+
#<strong>get_group</strong>(field) ⇒ <tt><span class='object_link'><a href="Fragments/Group.html" title="Prismic::Fragments::Group (class)">Fragments::Group</a></span></tt>
|
1228
1229
|
|
1229
1230
|
|
1230
1231
|
|
@@ -1269,7 +1270,7 @@ application's specific URL</p>
|
|
1269
1270
|
|
1270
1271
|
<span class='kw'>def</span> <span class='id identifier rubyid_get_group'>get_group</span><span class='lparen'>(</span><span class='id identifier rubyid_field'>field</span><span class='rparen'>)</span>
|
1271
1272
|
<span class='id identifier rubyid_fragment'>fragment</span> <span class='op'>=</span> <span class='kw'>self</span><span class='lbracket'>[</span><span class='id identifier rubyid_field'>field</span><span class='rbracket'>]</span>
|
1272
|
-
<span class='kw'>return</span> <span class='kw'>nil</span> <span class='kw'>unless</span> <span class='id identifier rubyid_fragment'>fragment</span><span class='period'>.</span><span class='id identifier rubyid_is_a?'>is_a?</span> <span class='const'>Prismic</span><span class='op'>::</span><span class='const'>Fragments</span><span class='op'>::</span><span class='const'>Group</span>
|
1273
|
+
<span class='kw'>return</span> <span class='kw'>nil</span> <span class='kw'>unless</span> <span class='id identifier rubyid_fragment'>fragment</span><span class='period'>.</span><span class='id identifier rubyid_is_a?'>is_a?</span> <span class='const'><span class='object_link'><a href="../Prismic.html" title="Prismic (module)">Prismic</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Fragments.html" title="Prismic::Fragments (module)">Fragments</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Fragments/Group.html" title="Prismic::Fragments::Group (class)">Group</a></span></span>
|
1273
1274
|
<span class='id identifier rubyid_fragment'>fragment</span>
|
1274
1275
|
<span class='kw'>end</span></pre>
|
1275
1276
|
</td>
|
@@ -1280,7 +1281,7 @@ application's specific URL</p>
|
|
1280
1281
|
<div class="method_details ">
|
1281
1282
|
<h3 class="signature " id="get_image-instance_method">
|
1282
1283
|
|
1283
|
-
|
1284
|
+
#<strong>get_image</strong>(field) ⇒ <tt><span class='object_link'><a href="Fragments/Image.html" title="Prismic::Fragments::Image (class)">Fragments::Image</a></span></tt>
|
1284
1285
|
|
1285
1286
|
|
1286
1287
|
|
@@ -1325,7 +1326,7 @@ application's specific URL</p>
|
|
1325
1326
|
|
1326
1327
|
<span class='kw'>def</span> <span class='id identifier rubyid_get_image'>get_image</span><span class='lparen'>(</span><span class='id identifier rubyid_field'>field</span><span class='rparen'>)</span>
|
1327
1328
|
<span class='id identifier rubyid_fragment'>fragment</span> <span class='op'>=</span> <span class='kw'>self</span><span class='lbracket'>[</span><span class='id identifier rubyid_field'>field</span><span class='rbracket'>]</span>
|
1328
|
-
<span class='kw'>return</span> <span class='kw'>nil</span> <span class='kw'>unless</span> <span class='id identifier rubyid_fragment'>fragment</span><span class='period'>.</span><span class='id identifier rubyid_is_a?'>is_a?</span> <span class='const'>Prismic</span><span class='op'>::</span><span class='const'>Fragments</span><span class='op'>::</span><span class='const'>Image</span>
|
1329
|
+
<span class='kw'>return</span> <span class='kw'>nil</span> <span class='kw'>unless</span> <span class='id identifier rubyid_fragment'>fragment</span><span class='period'>.</span><span class='id identifier rubyid_is_a?'>is_a?</span> <span class='const'><span class='object_link'><a href="../Prismic.html" title="Prismic (module)">Prismic</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Fragments.html" title="Prismic::Fragments (module)">Fragments</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Fragments/Image.html" title="Prismic::Fragments::Image (class)">Image</a></span></span>
|
1329
1330
|
<span class='id identifier rubyid_fragment'>fragment</span>
|
1330
1331
|
<span class='kw'>end</span></pre>
|
1331
1332
|
</td>
|
@@ -1336,7 +1337,7 @@ application's specific URL</p>
|
|
1336
1337
|
<div class="method_details ">
|
1337
1338
|
<h3 class="signature " id="get_link-instance_method">
|
1338
1339
|
|
1339
|
-
|
1340
|
+
#<strong>get_link</strong>(field) ⇒ <tt><span class='object_link'><a href="Fragments/Link.html" title="Prismic::Fragments::Link (class)">Fragments::Link</a></span></tt>
|
1340
1341
|
|
1341
1342
|
|
1342
1343
|
|
@@ -1381,7 +1382,7 @@ application's specific URL</p>
|
|
1381
1382
|
|
1382
1383
|
<span class='kw'>def</span> <span class='id identifier rubyid_get_link'>get_link</span><span class='lparen'>(</span><span class='id identifier rubyid_field'>field</span><span class='rparen'>)</span>
|
1383
1384
|
<span class='id identifier rubyid_fragment'>fragment</span> <span class='op'>=</span> <span class='kw'>self</span><span class='lbracket'>[</span><span class='id identifier rubyid_field'>field</span><span class='rbracket'>]</span>
|
1384
|
-
<span class='kw'>return</span> <span class='kw'>nil</span> <span class='kw'>unless</span> <span class='id identifier rubyid_fragment'>fragment</span><span class='period'>.</span><span class='id identifier rubyid_is_a?'>is_a?</span> <span class='const'>Prismic</span><span class='op'>::</span><span class='const'>Fragments</span><span class='op'>::</span><span class='const'>Link</span>
|
1385
|
+
<span class='kw'>return</span> <span class='kw'>nil</span> <span class='kw'>unless</span> <span class='id identifier rubyid_fragment'>fragment</span><span class='period'>.</span><span class='id identifier rubyid_is_a?'>is_a?</span> <span class='const'><span class='object_link'><a href="../Prismic.html" title="Prismic (module)">Prismic</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Fragments.html" title="Prismic::Fragments (module)">Fragments</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Fragments/Link.html" title="Prismic::Fragments::Link (class)">Link</a></span></span>
|
1385
1386
|
<span class='id identifier rubyid_fragment'>fragment</span>
|
1386
1387
|
<span class='kw'>end</span></pre>
|
1387
1388
|
</td>
|
@@ -1392,7 +1393,7 @@ application's specific URL</p>
|
|
1392
1393
|
<div class="method_details ">
|
1393
1394
|
<h3 class="signature " id="get_number-instance_method">
|
1394
1395
|
|
1395
|
-
|
1396
|
+
#<strong>get_number</strong>(field) ⇒ <tt><span class='object_link'><a href="Fragments/Number.html" title="Prismic::Fragments::Number (class)">Fragments::Number</a></span></tt>
|
1396
1397
|
|
1397
1398
|
|
1398
1399
|
|
@@ -1437,7 +1438,7 @@ application's specific URL</p>
|
|
1437
1438
|
|
1438
1439
|
<span class='kw'>def</span> <span class='id identifier rubyid_get_number'>get_number</span><span class='lparen'>(</span><span class='id identifier rubyid_field'>field</span><span class='rparen'>)</span>
|
1439
1440
|
<span class='id identifier rubyid_fragment'>fragment</span> <span class='op'>=</span> <span class='kw'>self</span><span class='lbracket'>[</span><span class='id identifier rubyid_field'>field</span><span class='rbracket'>]</span>
|
1440
|
-
<span class='kw'>return</span> <span class='kw'>nil</span> <span class='kw'>unless</span> <span class='id identifier rubyid_fragment'>fragment</span><span class='period'>.</span><span class='id identifier rubyid_is_a?'>is_a?</span> <span class='const'>Prismic</span><span class='op'>::</span><span class='const'>Fragments</span><span class='op'>::</span><span class='const'>Number</span>
|
1441
|
+
<span class='kw'>return</span> <span class='kw'>nil</span> <span class='kw'>unless</span> <span class='id identifier rubyid_fragment'>fragment</span><span class='period'>.</span><span class='id identifier rubyid_is_a?'>is_a?</span> <span class='const'><span class='object_link'><a href="../Prismic.html" title="Prismic (module)">Prismic</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Fragments.html" title="Prismic::Fragments (module)">Fragments</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Fragments/Number.html" title="Prismic::Fragments::Number (class)">Number</a></span></span>
|
1441
1442
|
<span class='id identifier rubyid_fragment'>fragment</span>
|
1442
1443
|
<span class='kw'>end</span></pre>
|
1443
1444
|
</td>
|
@@ -1448,7 +1449,7 @@ application's specific URL</p>
|
|
1448
1449
|
<div class="method_details ">
|
1449
1450
|
<h3 class="signature " id="get_slice_zone-instance_method">
|
1450
1451
|
|
1451
|
-
|
1452
|
+
#<strong>get_slice_zone</strong>(field) ⇒ <tt>Object</tt>
|
1452
1453
|
|
1453
1454
|
|
1454
1455
|
|
@@ -1471,7 +1472,7 @@ application's specific URL</p>
|
|
1471
1472
|
|
1472
1473
|
<span class='kw'>def</span> <span class='id identifier rubyid_get_slice_zone'>get_slice_zone</span><span class='lparen'>(</span><span class='id identifier rubyid_field'>field</span><span class='rparen'>)</span>
|
1473
1474
|
<span class='id identifier rubyid_fragment'>fragment</span> <span class='op'>=</span> <span class='kw'>self</span><span class='lbracket'>[</span><span class='id identifier rubyid_field'>field</span><span class='rbracket'>]</span>
|
1474
|
-
<span class='kw'>return</span> <span class='kw'>nil</span> <span class='kw'>unless</span> <span class='id identifier rubyid_fragment'>fragment</span><span class='period'>.</span><span class='id identifier rubyid_is_a?'>is_a?</span> <span class='const'>Prismic</span><span class='op'>::</span><span class='const'>Fragments</span><span class='op'>::</span><span class='const'>SliceZone</span>
|
1475
|
+
<span class='kw'>return</span> <span class='kw'>nil</span> <span class='kw'>unless</span> <span class='id identifier rubyid_fragment'>fragment</span><span class='period'>.</span><span class='id identifier rubyid_is_a?'>is_a?</span> <span class='const'><span class='object_link'><a href="../Prismic.html" title="Prismic (module)">Prismic</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Fragments.html" title="Prismic::Fragments (module)">Fragments</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Fragments/SliceZone.html" title="Prismic::Fragments::SliceZone (class)">SliceZone</a></span></span>
|
1475
1476
|
<span class='id identifier rubyid_fragment'>fragment</span>
|
1476
1477
|
<span class='kw'>end</span></pre>
|
1477
1478
|
</td>
|
@@ -1482,7 +1483,7 @@ application's specific URL</p>
|
|
1482
1483
|
<div class="method_details ">
|
1483
1484
|
<h3 class="signature " id="get_structured_text-instance_method">
|
1484
1485
|
|
1485
|
-
|
1486
|
+
#<strong>get_structured_text</strong>(field) ⇒ <tt><span class='object_link'><a href="Fragments/StructuredText.html" title="Prismic::Fragments::StructuredText (class)">Fragments::StructuredText</a></span></tt>
|
1486
1487
|
|
1487
1488
|
|
1488
1489
|
|
@@ -1527,7 +1528,7 @@ application's specific URL</p>
|
|
1527
1528
|
|
1528
1529
|
<span class='kw'>def</span> <span class='id identifier rubyid_get_structured_text'>get_structured_text</span><span class='lparen'>(</span><span class='id identifier rubyid_field'>field</span><span class='rparen'>)</span>
|
1529
1530
|
<span class='id identifier rubyid_fragment'>fragment</span> <span class='op'>=</span> <span class='kw'>self</span><span class='lbracket'>[</span><span class='id identifier rubyid_field'>field</span><span class='rbracket'>]</span>
|
1530
|
-
<span class='kw'>return</span> <span class='kw'>nil</span> <span class='kw'>unless</span> <span class='id identifier rubyid_fragment'>fragment</span><span class='period'>.</span><span class='id identifier rubyid_is_a?'>is_a?</span> <span class='const'>Prismic</span><span class='op'>::</span><span class='const'>Fragments</span><span class='op'>::</span><span class='const'>StructuredText</span>
|
1531
|
+
<span class='kw'>return</span> <span class='kw'>nil</span> <span class='kw'>unless</span> <span class='id identifier rubyid_fragment'>fragment</span><span class='period'>.</span><span class='id identifier rubyid_is_a?'>is_a?</span> <span class='const'><span class='object_link'><a href="../Prismic.html" title="Prismic (module)">Prismic</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Fragments.html" title="Prismic::Fragments (module)">Fragments</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Fragments/StructuredText.html" title="Prismic::Fragments::StructuredText (class)">StructuredText</a></span></span>
|
1531
1532
|
<span class='id identifier rubyid_fragment'>fragment</span>
|
1532
1533
|
<span class='kw'>end</span></pre>
|
1533
1534
|
</td>
|
@@ -1538,7 +1539,7 @@ application's specific URL</p>
|
|
1538
1539
|
<div class="method_details ">
|
1539
1540
|
<h3 class="signature " id="get_text-instance_method">
|
1540
1541
|
|
1541
|
-
|
1542
|
+
#<strong>get_text</strong>(field) ⇒ <tt><span class='object_link'><a href="Fragments/Text.html" title="Prismic::Fragments::Text (class)">Fragments::Text</a></span></tt>
|
1542
1543
|
|
1543
1544
|
|
1544
1545
|
|
@@ -1583,7 +1584,7 @@ application's specific URL</p>
|
|
1583
1584
|
|
1584
1585
|
<span class='kw'>def</span> <span class='id identifier rubyid_get_text'>get_text</span><span class='lparen'>(</span><span class='id identifier rubyid_field'>field</span><span class='rparen'>)</span>
|
1585
1586
|
<span class='id identifier rubyid_fragment'>fragment</span> <span class='op'>=</span> <span class='kw'>self</span><span class='lbracket'>[</span><span class='id identifier rubyid_field'>field</span><span class='rbracket'>]</span>
|
1586
|
-
<span class='kw'>return</span> <span class='kw'>nil</span> <span class='kw'>unless</span> <span class='id identifier rubyid_fragment'>fragment</span><span class='period'>.</span><span class='id identifier rubyid_is_a?'>is_a?</span> <span class='const'>Prismic</span><span class='op'>::</span><span class='const'>Fragments</span><span class='op'>::</span><span class='const'>Text</span>
|
1587
|
+
<span class='kw'>return</span> <span class='kw'>nil</span> <span class='kw'>unless</span> <span class='id identifier rubyid_fragment'>fragment</span><span class='period'>.</span><span class='id identifier rubyid_is_a?'>is_a?</span> <span class='const'><span class='object_link'><a href="../Prismic.html" title="Prismic (module)">Prismic</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Fragments.html" title="Prismic::Fragments (module)">Fragments</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Fragments/Text.html" title="Prismic::Fragments::Text (class)">Text</a></span></span>
|
1587
1588
|
<span class='id identifier rubyid_fragment'>fragment</span>
|
1588
1589
|
<span class='kw'>end</span></pre>
|
1589
1590
|
</td>
|
@@ -1594,7 +1595,7 @@ application's specific URL</p>
|
|
1594
1595
|
<div class="method_details ">
|
1595
1596
|
<h3 class="signature " id="get_timestamp-instance_method">
|
1596
1597
|
|
1597
|
-
|
1598
|
+
#<strong>get_timestamp</strong>(field) ⇒ <tt><span class='object_link'><a href="Fragments/Timestamp.html" title="Prismic::Fragments::Timestamp (class)">Fragments::Timestamp</a></span></tt>
|
1598
1599
|
|
1599
1600
|
|
1600
1601
|
|
@@ -1639,7 +1640,7 @@ application's specific URL</p>
|
|
1639
1640
|
|
1640
1641
|
<span class='kw'>def</span> <span class='id identifier rubyid_get_timestamp'>get_timestamp</span><span class='lparen'>(</span><span class='id identifier rubyid_field'>field</span><span class='rparen'>)</span>
|
1641
1642
|
<span class='id identifier rubyid_fragment'>fragment</span> <span class='op'>=</span> <span class='kw'>self</span><span class='lbracket'>[</span><span class='id identifier rubyid_field'>field</span><span class='rbracket'>]</span>
|
1642
|
-
<span class='kw'>return</span> <span class='kw'>nil</span> <span class='kw'>unless</span> <span class='id identifier rubyid_fragment'>fragment</span><span class='period'>.</span><span class='id identifier rubyid_is_a?'>is_a?</span> <span class='const'>Prismic</span><span class='op'>::</span><span class='const'>Fragments</span><span class='op'>::</span><span class='const'>Timestamp</span>
|
1643
|
+
<span class='kw'>return</span> <span class='kw'>nil</span> <span class='kw'>unless</span> <span class='id identifier rubyid_fragment'>fragment</span><span class='period'>.</span><span class='id identifier rubyid_is_a?'>is_a?</span> <span class='const'><span class='object_link'><a href="../Prismic.html" title="Prismic (module)">Prismic</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Fragments.html" title="Prismic::Fragments (module)">Fragments</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Fragments/Timestamp.html" title="Prismic::Fragments::Timestamp (class)">Timestamp</a></span></span>
|
1643
1644
|
<span class='id identifier rubyid_fragment'>fragment</span>
|
1644
1645
|
<span class='kw'>end</span></pre>
|
1645
1646
|
</td>
|
@@ -1650,7 +1651,7 @@ application's specific URL</p>
|
|
1650
1651
|
<div class="method_details ">
|
1651
1652
|
<h3 class="signature " id="length-instance_method">
|
1652
1653
|
|
1653
|
-
|
1654
|
+
#<strong>length</strong> ⇒ <tt>Fixum</tt>
|
1654
1655
|
|
1655
1656
|
|
1656
1657
|
|
@@ -1706,7 +1707,7 @@ application's specific URL</p>
|
|
1706
1707
|
<div class="method_details ">
|
1707
1708
|
<h3 class="signature " id="linked_documents-instance_method">
|
1708
1709
|
|
1709
|
-
|
1710
|
+
#<strong>linked_documents</strong> ⇒ <tt>Array<LinkedDocument></tt>
|
1710
1711
|
|
1711
1712
|
|
1712
1713
|
|
@@ -1766,19 +1767,19 @@ application's specific URL</p>
|
|
1766
1767
|
|
1767
1768
|
<span class='kw'>def</span> <span class='id identifier rubyid_linked_documents'>linked_documents</span>
|
1768
1769
|
<span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_fragments'>fragments</span><span class='period'>.</span><span class='id identifier rubyid_map'>map</span> <span class='lbrace'>{</span> <span class='op'>|</span><span class='id identifier rubyid_name'>name</span><span class='comma'>,</span> <span class='id identifier rubyid_fragment'>fragment</span><span class='op'>|</span>
|
1769
|
-
<span class='kw'>if</span> <span class='id identifier rubyid_fragment'>fragment</span><span class='period'>.</span><span class='id identifier rubyid_is_a?'>is_a?</span> <span class='const'>Prismic</span><span class='op'>::</span><span class='const'>Fragments</span><span class='op'>::</span><span class='const'>DocumentLink</span>
|
1770
|
+
<span class='kw'>if</span> <span class='id identifier rubyid_fragment'>fragment</span><span class='period'>.</span><span class='id identifier rubyid_is_a?'>is_a?</span> <span class='const'><span class='object_link'><a href="../Prismic.html" title="Prismic (module)">Prismic</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Fragments.html" title="Prismic::Fragments (module)">Fragments</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Fragments/DocumentLink.html" title="Prismic::Fragments::DocumentLink (class)">DocumentLink</a></span></span>
|
1770
1771
|
<span class='lbracket'>[</span><span class='id identifier rubyid_fragment'>fragment</span><span class='rbracket'>]</span>
|
1771
|
-
<span class='kw'>elsif</span> <span class='id identifier rubyid_fragment'>fragment</span><span class='period'>.</span><span class='id identifier rubyid_is_a?'>is_a?</span> <span class='const'>Prismic</span><span class='op'>::</span><span class='const'>Fragments</span><span class='op'>::</span><span class='const'>StructuredText</span>
|
1772
|
-
<span class='id identifier rubyid_fragment'>fragment</span><span class='period'>.</span><span class='id identifier rubyid_blocks'>blocks</span
|
1773
|
-
|
1774
|
-
|
1775
|
-
|
1776
|
-
|
1777
|
-
|
1778
|
-
<span class='kw'>elsif</span> <span class='id identifier rubyid_fragment'>fragment</span><span class='period'>.</span><span class='id identifier rubyid_is_a?'>is_a?</span> <span class='const'>Prismic</span><span class='op'>::</span><span class='const'>Fragments</span><span class='op'>::</span><span class='const'>Group</span>
|
1779
|
-
<span class='id identifier rubyid_fragment'>fragment</span><span class='period'>.</span><span class='id identifier rubyid_group_documents'>group_documents</span
|
1780
|
-
|
1781
|
-
|
1772
|
+
<span class='kw'>elsif</span> <span class='id identifier rubyid_fragment'>fragment</span><span class='period'>.</span><span class='id identifier rubyid_is_a?'>is_a?</span> <span class='const'><span class='object_link'><a href="../Prismic.html" title="Prismic (module)">Prismic</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Fragments.html" title="Prismic::Fragments (module)">Fragments</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Fragments/StructuredText.html" title="Prismic::Fragments::StructuredText (class)">StructuredText</a></span></span>
|
1773
|
+
<span class='id identifier rubyid_fragment'>fragment</span><span class='period'>.</span><span class='id identifier rubyid_blocks'>blocks</span>
|
1774
|
+
<span class='period'>.</span><span class='id identifier rubyid_select'>select</span> <span class='lbrace'>{</span> <span class='op'>|</span><span class='id identifier rubyid_block'>block</span><span class='op'>|</span> <span class='id identifier rubyid_block'>block</span><span class='period'>.</span><span class='id identifier rubyid_is_a?'>is_a?</span> <span class='const'><span class='object_link'><a href="../Prismic.html" title="Prismic (module)">Prismic</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Fragments.html" title="Prismic::Fragments (module)">Fragments</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Fragments/StructuredText.html" title="Prismic::Fragments::StructuredText (class)">StructuredText</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Fragments/StructuredText/Block.html" title="Prismic::Fragments::StructuredText::Block (class)">Block</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Fragments/StructuredText/Block/Text.html" title="Prismic::Fragments::StructuredText::Block::Text (class)">Text</a></span></span><span class='rbrace'>}</span>
|
1775
|
+
<span class='period'>.</span><span class='id identifier rubyid_map'>map</span> <span class='lbrace'>{</span> <span class='op'>|</span><span class='id identifier rubyid_block'>block</span><span class='op'>|</span> <span class='id identifier rubyid_block'>block</span><span class='period'>.</span><span class='id identifier rubyid_spans'>spans</span> <span class='rbrace'>}</span><span class='period'>.</span><span class='id identifier rubyid_flatten'>flatten</span>
|
1776
|
+
<span class='period'>.</span><span class='id identifier rubyid_select'>select</span> <span class='lbrace'>{</span> <span class='op'>|</span><span class='id identifier rubyid_span'>span</span><span class='op'>|</span> <span class='id identifier rubyid_span'>span</span><span class='period'>.</span><span class='id identifier rubyid_is_a?'>is_a?</span> <span class='const'><span class='object_link'><a href="../Prismic.html" title="Prismic (module)">Prismic</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Fragments.html" title="Prismic::Fragments (module)">Fragments</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Fragments/StructuredText.html" title="Prismic::Fragments::StructuredText (class)">StructuredText</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Fragments/StructuredText/Span.html" title="Prismic::Fragments::StructuredText::Span (class)">Span</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Fragments/StructuredText/Span/Hyperlink.html" title="Prismic::Fragments::StructuredText::Span::Hyperlink (class)">Hyperlink</a></span></span> <span class='rbrace'>}</span>
|
1777
|
+
<span class='period'>.</span><span class='id identifier rubyid_map'>map</span> <span class='lbrace'>{</span> <span class='op'>|</span><span class='id identifier rubyid_span'>span</span><span class='op'>|</span> <span class='id identifier rubyid_span'>span</span><span class='period'>.</span><span class='id identifier rubyid_link'>link</span> <span class='rbrace'>}</span>
|
1778
|
+
<span class='period'>.</span><span class='id identifier rubyid_select'>select</span> <span class='lbrace'>{</span> <span class='op'>|</span><span class='id identifier rubyid_link'>link</span><span class='op'>|</span> <span class='id identifier rubyid_link'>link</span><span class='period'>.</span><span class='id identifier rubyid_is_a?'>is_a?</span> <span class='const'><span class='object_link'><a href="../Prismic.html" title="Prismic (module)">Prismic</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Fragments.html" title="Prismic::Fragments (module)">Fragments</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Fragments/DocumentLink.html" title="Prismic::Fragments::DocumentLink (class)">DocumentLink</a></span></span> <span class='rbrace'>}</span>
|
1779
|
+
<span class='kw'>elsif</span> <span class='id identifier rubyid_fragment'>fragment</span><span class='period'>.</span><span class='id identifier rubyid_is_a?'>is_a?</span> <span class='const'><span class='object_link'><a href="../Prismic.html" title="Prismic (module)">Prismic</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Fragments.html" title="Prismic::Fragments (module)">Fragments</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Fragments/Group.html" title="Prismic::Fragments::Group (class)">Group</a></span></span>
|
1780
|
+
<span class='id identifier rubyid_fragment'>fragment</span><span class='period'>.</span><span class='id identifier rubyid_group_documents'>group_documents</span>
|
1781
|
+
<span class='period'>.</span><span class='id identifier rubyid_map'>map</span> <span class='lbrace'>{</span> <span class='op'>|</span><span class='id identifier rubyid_groupDoc'>groupDoc</span><span class='op'>|</span> <span class='id identifier rubyid_groupDoc'>groupDoc</span><span class='period'>.</span><span class='id identifier rubyid_linked_documents'>linked_documents</span> <span class='rbrace'>}</span>
|
1782
|
+
<span class='period'>.</span><span class='id identifier rubyid_flatten'>flatten</span>
|
1782
1783
|
<span class='kw'>else</span>
|
1783
1784
|
<span class='lbracket'>[</span><span class='rbracket'>]</span>
|
1784
1785
|
<span class='kw'>end</span>
|
@@ -1793,11 +1794,12 @@ application's specific URL</p>
|
|
1793
1794
|
|
1794
1795
|
</div>
|
1795
1796
|
|
1796
|
-
|
1797
|
-
Generated on
|
1797
|
+
<div id="footer">
|
1798
|
+
Generated on Mon Jan 16 16:05:08 2017 by
|
1798
1799
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
1799
|
-
0.8
|
1800
|
+
0.9.8 (ruby-2.3.1).
|
1800
1801
|
</div>
|
1801
1802
|
|
1803
|
+
</div>
|
1802
1804
|
</body>
|
1803
1805
|
</html>
|