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
|
Class: Prismic::Fragments::StructuredText::BlockGroup
|
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::Fragments::StructuredText::BlockGroup";
|
19
19
|
relpath = '../../../';
|
20
|
-
framesUrl = "../../../frames.html#!Prismic/Fragments/StructuredText/BlockGroup.html";
|
21
20
|
</script>
|
22
21
|
|
23
22
|
|
@@ -28,51 +27,48 @@
|
|
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 (B)</a> »
|
35
40
|
<span class='title'><span class='object_link'><a href="../../../Prismic.html" title="Prismic (module)">Prismic</a></span></span> » <span class='title'><span class='object_link'><a href="../../Fragments.html" title="Prismic::Fragments (module)">Fragments</a></span></span> » <span class='title'><span class='object_link'><a href="../StructuredText.html" title="Prismic::Fragments::StructuredText (class)">StructuredText</a></span></span>
|
36
41
|
»
|
37
42
|
<span class="title">BlockGroup</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>Class: Prismic::Fragments::StructuredText::BlockGroup
|
62
|
+
<div id="content"><h1>Class: Prismic::Fragments::StructuredText::BlockGroup
|
67
63
|
|
68
64
|
|
69
65
|
|
70
66
|
</h1>
|
71
|
-
|
72
|
-
<dl class="box">
|
67
|
+
<div class="box_info">
|
73
68
|
|
74
|
-
|
75
|
-
<
|
69
|
+
<dl>
|
70
|
+
<dt>Inherits:</dt>
|
71
|
+
<dd>
|
76
72
|
<span class="inheritName">Object</span>
|
77
73
|
|
78
74
|
<ul class="fullTree">
|
@@ -83,21 +79,25 @@
|
|
83
79
|
</ul>
|
84
80
|
<a href="#" class="inheritanceTree">show all</a>
|
85
81
|
|
86
|
-
|
87
|
-
|
82
|
+
</dd>
|
83
|
+
</dl>
|
84
|
+
|
85
|
+
|
88
86
|
|
89
87
|
|
90
|
-
|
91
88
|
|
92
|
-
|
93
89
|
|
94
90
|
|
91
|
+
|
92
|
+
|
93
|
+
|
95
94
|
|
96
|
-
|
97
|
-
<
|
95
|
+
<dl>
|
96
|
+
<dt>Defined in:</dt>
|
97
|
+
<dd>lib/prismic/fragments/structured_text.rb</dd>
|
98
|
+
</dl>
|
98
99
|
|
99
|
-
</
|
100
|
-
<div class="clear"></div>
|
100
|
+
</div>
|
101
101
|
|
102
102
|
<h2>Overview</h2><div class="docstring">
|
103
103
|
<div class="discussion">
|
@@ -116,13 +116,13 @@ Images, paragraphs, headings, embed, ... are then placed alone in their own Bloc
|
|
116
116
|
|
117
117
|
|
118
118
|
|
119
|
-
<h2>Instance Attribute Summary <small
|
119
|
+
<h2>Instance Attribute Summary <small><a href="#" class="summary_toggle">collapse</a></small></h2>
|
120
120
|
<ul class="summary">
|
121
121
|
|
122
122
|
<li class="public ">
|
123
123
|
<span class="summary_signature">
|
124
124
|
|
125
|
-
<a href="#blocks-instance_method" title="#blocks (instance method)"
|
125
|
+
<a href="#blocks-instance_method" title="#blocks (instance method)">#<strong>blocks</strong> ⇒ Object </a>
|
126
126
|
|
127
127
|
|
128
128
|
|
@@ -150,7 +150,7 @@ Images, paragraphs, headings, embed, ... are then placed alone in their own Bloc
|
|
150
150
|
<li class="public ">
|
151
151
|
<span class="summary_signature">
|
152
152
|
|
153
|
-
<a href="#kind-instance_method" title="#kind (instance method)"
|
153
|
+
<a href="#kind-instance_method" title="#kind (instance method)">#<strong>kind</strong> ⇒ Object </a>
|
154
154
|
|
155
155
|
|
156
156
|
|
@@ -183,7 +183,7 @@ Images, paragraphs, headings, embed, ... are then placed alone in their own Bloc
|
|
183
183
|
|
184
184
|
<h2>
|
185
185
|
Instance Method Summary
|
186
|
-
<small
|
186
|
+
<small><a href="#" class="summary_toggle">collapse</a></small>
|
187
187
|
</h2>
|
188
188
|
|
189
189
|
<ul class="summary">
|
@@ -191,7 +191,7 @@ Images, paragraphs, headings, embed, ... are then placed alone in their own Bloc
|
|
191
191
|
<li class="public ">
|
192
192
|
<span class="summary_signature">
|
193
193
|
|
194
|
-
<a href="
|
194
|
+
<a href="#<<-instance_method" title="#<< (instance method)">#<strong><<</strong>(block) ⇒ Object </a>
|
195
195
|
|
196
196
|
|
197
197
|
|
@@ -213,7 +213,7 @@ Images, paragraphs, headings, embed, ... are then placed alone in their own Bloc
|
|
213
213
|
<li class="public ">
|
214
214
|
<span class="summary_signature">
|
215
215
|
|
216
|
-
<a href="#initialize-instance_method" title="#initialize (instance method)"
|
216
|
+
<a href="#initialize-instance_method" title="#initialize (instance method)">#<strong>initialize</strong>(kind) ⇒ BlockGroup </a>
|
217
217
|
|
218
218
|
|
219
219
|
|
@@ -244,7 +244,7 @@ Images, paragraphs, headings, embed, ... are then placed alone in their own Bloc
|
|
244
244
|
<div class="method_details first">
|
245
245
|
<h3 class="signature first" id="initialize-instance_method">
|
246
246
|
|
247
|
-
|
247
|
+
#<strong>initialize</strong>(kind) ⇒ <tt><span class='object_link'><a href="" title="Prismic::Fragments::StructuredText::BlockGroup (class)">BlockGroup</a></span></tt>
|
248
248
|
|
249
249
|
|
250
250
|
|
@@ -293,7 +293,7 @@ Images, paragraphs, headings, embed, ... are then placed alone in their own Bloc
|
|
293
293
|
<div class="method_details first">
|
294
294
|
<h3 class="signature first" id="blocks-instance_method">
|
295
295
|
|
296
|
-
|
296
|
+
#<strong>blocks</strong> ⇒ <tt>Object</tt> <span class="extras">(readonly)</span>
|
297
297
|
|
298
298
|
|
299
299
|
|
@@ -335,7 +335,7 @@ Images, paragraphs, headings, embed, ... are then placed alone in their own Bloc
|
|
335
335
|
<div class="method_details ">
|
336
336
|
<h3 class="signature " id="kind-instance_method">
|
337
337
|
|
338
|
-
|
338
|
+
#<strong>kind</strong> ⇒ <tt>Object</tt> <span class="extras">(readonly)</span>
|
339
339
|
|
340
340
|
|
341
341
|
|
@@ -382,7 +382,7 @@ Images, paragraphs, headings, embed, ... are then placed alone in their own Bloc
|
|
382
382
|
<div class="method_details first">
|
383
383
|
<h3 class="signature first" id="<<-instance_method">
|
384
384
|
|
385
|
-
|
385
|
+
#<strong><<</strong>(block) ⇒ <tt>Object</tt>
|
386
386
|
|
387
387
|
|
388
388
|
|
@@ -413,11 +413,12 @@ Images, paragraphs, headings, embed, ... are then placed alone in their own Bloc
|
|
413
413
|
|
414
414
|
</div>
|
415
415
|
|
416
|
-
|
417
|
-
Generated on
|
416
|
+
<div id="footer">
|
417
|
+
Generated on Mon Jan 16 16:05:10 2017 by
|
418
418
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
419
|
-
0.8
|
419
|
+
0.9.8 (ruby-2.3.1).
|
420
420
|
</div>
|
421
421
|
|
422
|
+
</div>
|
422
423
|
</body>
|
423
424
|
</html>
|
@@ -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
|
Class: Prismic::Fragments::StructuredText::Span::Em
|
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::Fragments::StructuredText::Span::Em";
|
19
19
|
relpath = '../../../../';
|
20
|
-
framesUrl = "../../../../frames.html#!Prismic/Fragments/StructuredText/Span/Em.html";
|
21
20
|
</script>
|
22
21
|
|
23
22
|
|
@@ -28,51 +27,48 @@
|
|
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 (E)</a> »
|
35
40
|
<span class='title'><span class='object_link'><a href="../../../../Prismic.html" title="Prismic (module)">Prismic</a></span></span> » <span class='title'><span class='object_link'><a href="../../../Fragments.html" title="Prismic::Fragments (module)">Fragments</a></span></span> » <span class='title'><span class='object_link'><a href="../../StructuredText.html" title="Prismic::Fragments::StructuredText (class)">StructuredText</a></span></span> » <span class='title'><span class='object_link'><a href="../Span.html" title="Prismic::Fragments::StructuredText::Span (class)">Span</a></span></span>
|
36
41
|
»
|
37
42
|
<span class="title">Em</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>Class: Prismic::Fragments::StructuredText::Span::Em
|
62
|
+
<div id="content"><h1>Class: Prismic::Fragments::StructuredText::Span::Em
|
67
63
|
|
68
64
|
|
69
65
|
|
70
66
|
</h1>
|
71
|
-
|
72
|
-
<dl class="box">
|
67
|
+
<div class="box_info">
|
73
68
|
|
74
|
-
|
75
|
-
<
|
69
|
+
<dl>
|
70
|
+
<dt>Inherits:</dt>
|
71
|
+
<dd>
|
76
72
|
<span class="inheritName"><span class='object_link'><a href="../Span.html" title="Prismic::Fragments::StructuredText::Span (class)">Prismic::Fragments::StructuredText::Span</a></span></span>
|
77
73
|
|
78
74
|
<ul class="fullTree">
|
@@ -85,21 +81,25 @@
|
|
85
81
|
</ul>
|
86
82
|
<a href="#" class="inheritanceTree">show all</a>
|
87
83
|
|
88
|
-
|
89
|
-
|
84
|
+
</dd>
|
85
|
+
</dl>
|
86
|
+
|
87
|
+
|
90
88
|
|
91
89
|
|
92
|
-
|
93
90
|
|
94
|
-
|
95
91
|
|
96
92
|
|
93
|
+
|
94
|
+
|
95
|
+
|
97
96
|
|
98
|
-
|
99
|
-
<
|
97
|
+
<dl>
|
98
|
+
<dt>Defined in:</dt>
|
99
|
+
<dd>lib/prismic/fragments/structured_text.rb</dd>
|
100
|
+
</dl>
|
100
101
|
|
101
|
-
</
|
102
|
-
<div class="clear"></div>
|
102
|
+
</div>
|
103
103
|
|
104
104
|
|
105
105
|
|
@@ -116,7 +116,7 @@
|
|
116
116
|
|
117
117
|
<h2>
|
118
118
|
Instance Method Summary
|
119
|
-
<small
|
119
|
+
<small><a href="#" class="summary_toggle">collapse</a></small>
|
120
120
|
</h2>
|
121
121
|
|
122
122
|
<ul class="summary">
|
@@ -124,7 +124,7 @@
|
|
124
124
|
<li class="public ">
|
125
125
|
<span class="summary_signature">
|
126
126
|
|
127
|
-
<a href="#serialize-instance_method" title="#serialize (instance method)"
|
127
|
+
<a href="#serialize-instance_method" title="#serialize (instance method)">#<strong>serialize</strong>(text, link_resolver = nil) ⇒ Object </a>
|
128
128
|
|
129
129
|
|
130
130
|
|
@@ -172,7 +172,7 @@
|
|
172
172
|
<div class="method_details first">
|
173
173
|
<h3 class="signature first" id="serialize-instance_method">
|
174
174
|
|
175
|
-
|
175
|
+
#<strong>serialize</strong>(text, link_resolver = nil) ⇒ <tt>Object</tt>
|
176
176
|
|
177
177
|
|
178
178
|
|
@@ -203,11 +203,12 @@
|
|
203
203
|
|
204
204
|
</div>
|
205
205
|
|
206
|
-
|
207
|
-
Generated on
|
206
|
+
<div id="footer">
|
207
|
+
Generated on Mon Jan 16 16:05:10 2017 by
|
208
208
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
209
|
-
0.8
|
209
|
+
0.9.8 (ruby-2.3.1).
|
210
210
|
</div>
|
211
211
|
|
212
|
+
</div>
|
212
213
|
</body>
|
213
214
|
</html>
|
@@ -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
|
Class: Prismic::Fragments::StructuredText::Span::Hyperlink
|
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::Fragments::StructuredText::Span::Hyperlink";
|
19
19
|
relpath = '../../../../';
|
20
|
-
framesUrl = "../../../../frames.html#!Prismic/Fragments/StructuredText/Span/Hyperlink.html";
|
21
20
|
</script>
|
22
21
|
|
23
22
|
|
@@ -28,51 +27,48 @@
|
|
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 (H)</a> »
|
35
40
|
<span class='title'><span class='object_link'><a href="../../../../Prismic.html" title="Prismic (module)">Prismic</a></span></span> » <span class='title'><span class='object_link'><a href="../../../Fragments.html" title="Prismic::Fragments (module)">Fragments</a></span></span> » <span class='title'><span class='object_link'><a href="../../StructuredText.html" title="Prismic::Fragments::StructuredText (class)">StructuredText</a></span></span> » <span class='title'><span class='object_link'><a href="../Span.html" title="Prismic::Fragments::StructuredText::Span (class)">Span</a></span></span>
|
36
41
|
»
|
37
42
|
<span class="title">Hyperlink</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>Class: Prismic::Fragments::StructuredText::Span::Hyperlink
|
62
|
+
<div id="content"><h1>Class: Prismic::Fragments::StructuredText::Span::Hyperlink
|
67
63
|
|
68
64
|
|
69
65
|
|
70
66
|
</h1>
|
71
|
-
|
72
|
-
<dl class="box">
|
67
|
+
<div class="box_info">
|
73
68
|
|
74
|
-
|
75
|
-
<
|
69
|
+
<dl>
|
70
|
+
<dt>Inherits:</dt>
|
71
|
+
<dd>
|
76
72
|
<span class="inheritName"><span class='object_link'><a href="../Span.html" title="Prismic::Fragments::StructuredText::Span (class)">Prismic::Fragments::StructuredText::Span</a></span></span>
|
77
73
|
|
78
74
|
<ul class="fullTree">
|
@@ -85,33 +81,37 @@
|
|
85
81
|
</ul>
|
86
82
|
<a href="#" class="inheritanceTree">show all</a>
|
87
83
|
|
88
|
-
|
89
|
-
|
84
|
+
</dd>
|
85
|
+
</dl>
|
86
|
+
|
87
|
+
|
90
88
|
|
91
89
|
|
92
|
-
|
93
90
|
|
94
|
-
|
95
91
|
|
96
92
|
|
93
|
+
|
94
|
+
|
95
|
+
|
97
96
|
|
98
|
-
|
99
|
-
<
|
97
|
+
<dl>
|
98
|
+
<dt>Defined in:</dt>
|
99
|
+
<dd>lib/prismic/fragments/structured_text.rb</dd>
|
100
|
+
</dl>
|
100
101
|
|
101
|
-
</
|
102
|
-
<div class="clear"></div>
|
102
|
+
</div>
|
103
103
|
|
104
104
|
|
105
105
|
|
106
106
|
|
107
107
|
|
108
|
-
<h2>Instance Attribute Summary <small
|
108
|
+
<h2>Instance Attribute Summary <small><a href="#" class="summary_toggle">collapse</a></small></h2>
|
109
109
|
<ul class="summary">
|
110
110
|
|
111
111
|
<li class="public ">
|
112
112
|
<span class="summary_signature">
|
113
113
|
|
114
|
-
<a href="#link-instance_method" title="#link (instance method)"
|
114
|
+
<a href="#link-instance_method" title="#link (instance method)">#<strong>link</strong> ⇒ Object </a>
|
115
115
|
|
116
116
|
|
117
117
|
|
@@ -147,7 +147,7 @@
|
|
147
147
|
|
148
148
|
<h2>
|
149
149
|
Instance Method Summary
|
150
|
-
<small
|
150
|
+
<small><a href="#" class="summary_toggle">collapse</a></small>
|
151
151
|
</h2>
|
152
152
|
|
153
153
|
<ul class="summary">
|
@@ -155,7 +155,7 @@
|
|
155
155
|
<li class="public ">
|
156
156
|
<span class="summary_signature">
|
157
157
|
|
158
|
-
<a href="#initialize-instance_method" title="#initialize (instance method)"
|
158
|
+
<a href="#initialize-instance_method" title="#initialize (instance method)">#<strong>initialize</strong>(start, finish, link) ⇒ Hyperlink </a>
|
159
159
|
|
160
160
|
|
161
161
|
|
@@ -180,7 +180,7 @@
|
|
180
180
|
<li class="public ">
|
181
181
|
<span class="summary_signature">
|
182
182
|
|
183
|
-
<a href="#serialize-instance_method" title="#serialize (instance method)"
|
183
|
+
<a href="#serialize-instance_method" title="#serialize (instance method)">#<strong>serialize</strong>(text, link_resolver = nil) ⇒ Object </a>
|
184
184
|
|
185
185
|
|
186
186
|
|
@@ -214,7 +214,7 @@
|
|
214
214
|
<div class="method_details first">
|
215
215
|
<h3 class="signature first" id="initialize-instance_method">
|
216
216
|
|
217
|
-
|
217
|
+
#<strong>initialize</strong>(start, finish, link) ⇒ <tt><span class='object_link'><a href="" title="Prismic::Fragments::StructuredText::Span::Hyperlink (class)">Hyperlink</a></span></tt>
|
218
218
|
|
219
219
|
|
220
220
|
|
@@ -263,7 +263,7 @@
|
|
263
263
|
<div class="method_details first">
|
264
264
|
<h3 class="signature first" id="link-instance_method">
|
265
265
|
|
266
|
-
|
266
|
+
#<strong>link</strong> ⇒ <tt>Object</tt>
|
267
267
|
|
268
268
|
|
269
269
|
|
@@ -310,7 +310,7 @@
|
|
310
310
|
<div class="method_details first">
|
311
311
|
<h3 class="signature first" id="serialize-instance_method">
|
312
312
|
|
313
|
-
|
313
|
+
#<strong>serialize</strong>(text, link_resolver = nil) ⇒ <tt>Object</tt>
|
314
314
|
|
315
315
|
|
316
316
|
|
@@ -334,7 +334,7 @@
|
|
334
334
|
<pre class="code"><span class="info file"># File 'lib/prismic/fragments/structured_text.rb', line 138</span>
|
335
335
|
|
336
336
|
<span class='kw'>def</span> <span class='id identifier rubyid_serialize'>serialize</span><span class='lparen'>(</span><span class='id identifier rubyid_text'>text</span><span class='comma'>,</span> <span class='id identifier rubyid_link_resolver'>link_resolver</span> <span class='op'>=</span> <span class='kw'>nil</span><span class='rparen'>)</span>
|
337
|
-
<span class='kw'>if</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'>Prismic</span><span class='op'>::</span><span class='const'>Fragments</span><span class='op'>::</span><span class='const'>DocumentLink</span> <span class='kw'>and</span> <span class='id identifier rubyid_link'>link</span><span class='period'>.</span><span class='id identifier rubyid_broken'>broken</span>
|
337
|
+
<span class='kw'>if</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="../../DocumentLink.html" title="Prismic::Fragments::DocumentLink (class)">DocumentLink</a></span></span> <span class='kw'>and</span> <span class='id identifier rubyid_link'>link</span><span class='period'>.</span><span class='id identifier rubyid_broken'>broken</span>
|
338
338
|
<span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'><span></span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_text'>text</span><span class='embexpr_end'>}</span><span class='tstring_content'></span></span><span class='tstring_end'>"</span></span>
|
339
339
|
<span class='kw'>else</span>
|
340
340
|
<span class='tstring'><span class='tstring_beg'>%(</span><span class='tstring_content'><a href="</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_link'>link</span><span class='period'>.</span><span class='id identifier rubyid_url'>url</span><span class='lparen'>(</span><span class='id identifier rubyid_link_resolver'>link_resolver</span><span class='rparen'>)</span><span class='embexpr_end'>}</span><span class='tstring_content'>"></span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_text'>text</span><span class='embexpr_end'>}</span><span class='tstring_content'></a></span><span class='tstring_end'>)</span></span>
|
@@ -349,11 +349,12 @@
|
|
349
349
|
|
350
350
|
</div>
|
351
351
|
|
352
|
-
|
353
|
-
Generated on
|
352
|
+
<div id="footer">
|
353
|
+
Generated on Mon Jan 16 16:05:10 2017 by
|
354
354
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
355
|
-
0.8
|
355
|
+
0.9.8 (ruby-2.3.1).
|
356
356
|
</div>
|
357
357
|
|
358
|
+
</div>
|
358
359
|
</body>
|
359
360
|
</html>
|