gravaty 9.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (138) hide show
  1. checksums.yaml +7 -0
  2. data/CHANGELOG +835 -0
  3. data/COPYING.md +675 -0
  4. data/Gemfile +21 -0
  5. data/ISSUES.md +62 -0
  6. data/README.md +287 -0
  7. data/Rakefile +52 -0
  8. data/acknowledgements.md +66 -0
  9. data/authors.md +63 -0
  10. data/copyright.md +468 -0
  11. data/examples/avatar.rb +159 -0
  12. data/examples/basics.rb +75 -0
  13. data/examples/cacert.pem +3401 -0
  14. data/examples/profile.rb +187 -0
  15. data/examples/xmlrpc.rb +41 -0
  16. data/gravaty.gemspec +78 -0
  17. data/gravaty.odp +0 -0
  18. data/gravaty.pdf +0 -0
  19. data/html/CHANGELOG.html +1117 -0
  20. data/html/COPYING_md.html +393 -0
  21. data/html/Gemfile.html +108 -0
  22. data/html/Gravaty/Gravaty.html +1002 -0
  23. data/html/Gravaty/ParsableDuckType.html +162 -0
  24. data/html/Gravaty/Parser.html +239 -0
  25. data/html/Gravaty/Parsers/Avatar.html +169 -0
  26. data/html/Gravaty/Parsers/Callback.html +170 -0
  27. data/html/Gravaty/Parsers/Default.html +178 -0
  28. data/html/Gravaty/Parsers/Force.html +170 -0
  29. data/html/Gravaty/Parsers/Format.html +181 -0
  30. data/html/Gravaty/Parsers/Pixelsize.html +181 -0
  31. data/html/Gravaty/Parsers/Rating.html +181 -0
  32. data/html/Gravaty/Parsers/Secure.html +169 -0
  33. data/html/Gravaty/Parsers/Type.html +181 -0
  34. data/html/Gravaty/Parsers.html +96 -0
  35. data/html/Gravaty/Utils/Downloader/Downloader.html +227 -0
  36. data/html/Gravaty/Utils/Downloader.html +108 -0
  37. data/html/Gravaty/Utils/Raisers.html +203 -0
  38. data/html/Gravaty/Utils/Rfc5322.html +139 -0
  39. data/html/Gravaty/Utils/RpcConnector/RpcConnector.html +248 -0
  40. data/html/Gravaty/Utils/RpcConnector.html +111 -0
  41. data/html/Gravaty/Utils.html +111 -0
  42. data/html/Gravaty.html +320 -0
  43. data/html/ISSUES_md.html +165 -0
  44. data/html/Object.html +187 -0
  45. data/html/README_md.html +276 -0
  46. data/html/Rakefile.html +141 -0
  47. data/html/acknowledgements_md.html +160 -0
  48. data/html/authors_md.html +173 -0
  49. data/html/copyright_md.html +481 -0
  50. data/html/created.rid +59 -0
  51. data/html/css/fonts.css +167 -0
  52. data/html/css/rdoc.css +590 -0
  53. data/html/examples/cacert_pem.html +1056 -0
  54. data/html/fonts/Lato-Light.ttf +0 -0
  55. data/html/fonts/Lato-LightItalic.ttf +0 -0
  56. data/html/fonts/Lato-Regular.ttf +0 -0
  57. data/html/fonts/Lato-RegularItalic.ttf +0 -0
  58. data/html/fonts/SourceCodePro-Bold.ttf +0 -0
  59. data/html/fonts/SourceCodePro-Regular.ttf +0 -0
  60. data/html/gravaty_gemspec.html +169 -0
  61. data/html/images/add.png +0 -0
  62. data/html/images/arrow_up.png +0 -0
  63. data/html/images/brick.png +0 -0
  64. data/html/images/brick_link.png +0 -0
  65. data/html/images/bug.png +0 -0
  66. data/html/images/bullet_black.png +0 -0
  67. data/html/images/bullet_toggle_minus.png +0 -0
  68. data/html/images/bullet_toggle_plus.png +0 -0
  69. data/html/images/date.png +0 -0
  70. data/html/images/delete.png +0 -0
  71. data/html/images/find.png +0 -0
  72. data/html/images/loadingAnimation.gif +0 -0
  73. data/html/images/macFFBgHack.png +0 -0
  74. data/html/images/package.png +0 -0
  75. data/html/images/page_green.png +0 -0
  76. data/html/images/page_white_text.png +0 -0
  77. data/html/images/page_white_width.png +0 -0
  78. data/html/images/plugin.png +0 -0
  79. data/html/images/ruby.png +0 -0
  80. data/html/images/tag_blue.png +0 -0
  81. data/html/images/tag_green.png +0 -0
  82. data/html/images/transparent.png +0 -0
  83. data/html/images/wrench.png +0 -0
  84. data/html/images/wrench_orange.png +0 -0
  85. data/html/images/zoom.png +0 -0
  86. data/html/index.html +308 -0
  87. data/html/js/darkfish.js +161 -0
  88. data/html/js/jquery.js +4 -0
  89. data/html/js/navigation.js +141 -0
  90. data/html/js/navigation.js.gz +0 -0
  91. data/html/js/search.js +109 -0
  92. data/html/js/search_index.js +1 -0
  93. data/html/js/search_index.js.gz +0 -0
  94. data/html/js/searcher.js +229 -0
  95. data/html/js/searcher.js.gz +0 -0
  96. data/html/table_of_contents.html +995 -0
  97. data/lib/gravaty/application.rb +354 -0
  98. data/lib/gravaty/constants.rb +65 -0
  99. data/lib/gravaty/locales/en.yml +38 -0
  100. data/lib/gravaty/locales/it.yml +38 -0
  101. data/lib/gravaty/locales/ja.yml +39 -0
  102. data/lib/gravaty/parser.rb +50 -0
  103. data/lib/gravaty/parsers/avatar.rb +40 -0
  104. data/lib/gravaty/parsers/callback.rb +41 -0
  105. data/lib/gravaty/parsers/default.rb +92 -0
  106. data/lib/gravaty/parsers/force.rb +40 -0
  107. data/lib/gravaty/parsers/format.rb +45 -0
  108. data/lib/gravaty/parsers/pixelsize.rb +45 -0
  109. data/lib/gravaty/parsers/rating.rb +45 -0
  110. data/lib/gravaty/parsers/secure.rb +39 -0
  111. data/lib/gravaty/parsers/type.rb +45 -0
  112. data/lib/gravaty/utils/downloader.rb +156 -0
  113. data/lib/gravaty/utils/raisers.rb +63 -0
  114. data/lib/gravaty/utils/rfc5322.rb +110 -0
  115. data/lib/gravaty/utils/rpc_connector.rb +86 -0
  116. data/lib/gravaty/version.rb +24 -0
  117. data/lib/gravaty.rb +75 -0
  118. data/test/gravaty/locales/test_locales.rb +69 -0
  119. data/test/gravaty/parsers/test_avatar.rb +39 -0
  120. data/test/gravaty/parsers/test_callback.rb +42 -0
  121. data/test/gravaty/parsers/test_default.rb +79 -0
  122. data/test/gravaty/parsers/test_force.rb +39 -0
  123. data/test/gravaty/parsers/test_format.rb +54 -0
  124. data/test/gravaty/parsers/test_pixelsize.rb +56 -0
  125. data/test/gravaty/parsers/test_rating.rb +54 -0
  126. data/test/gravaty/parsers/test_secure.rb +39 -0
  127. data/test/gravaty/parsers/test_type.rb +44 -0
  128. data/test/gravaty/test_application.rb +126 -0
  129. data/test/gravaty/test_avatar.rb +122 -0
  130. data/test/gravaty/test_parser.rb +59 -0
  131. data/test/gravaty/test_profile.rb +70 -0
  132. data/test/gravaty/utils/test_downloader.rb +51 -0
  133. data/test/gravaty/utils/test_raisers.rb +62 -0
  134. data/test/gravaty/utils/test_rfc5322.rb +82 -0
  135. data/test/gravaty/utils/test_rpc_connector.rb +82 -0
  136. data/test/test_gravaty.rb +48 -0
  137. data/test/test_helper.rb +105 -0
  138. metadata +348 -0
@@ -0,0 +1,162 @@
1
+ <!DOCTYPE html>
2
+
3
+ <html>
4
+ <head>
5
+ <meta charset="UTF-8">
6
+
7
+ <title>module Gravaty::ParsableDuckType - gravaty 9.0.0</title>
8
+
9
+ <script type="text/javascript">
10
+ var rdoc_rel_prefix = "../";
11
+ var index_rel_prefix = "../";
12
+ </script>
13
+
14
+ <script src="../js/jquery.js"></script>
15
+ <script src="../js/darkfish.js"></script>
16
+
17
+ <link href="../css/fonts.css" rel="stylesheet">
18
+ <link href="../css/rdoc.css" rel="stylesheet">
19
+
20
+
21
+
22
+
23
+ <body id="top" role="document" class="module">
24
+ <nav role="navigation">
25
+ <div id="project-navigation">
26
+ <div id="home-section" role="region" title="Quick navigation" class="nav-section">
27
+ <h2>
28
+ <a href="../index.html" rel="home">Home</a>
29
+ </h2>
30
+
31
+ <div id="table-of-contents-navigation">
32
+ <a href="../table_of_contents.html#pages">Pages</a>
33
+ <a href="../table_of_contents.html#classes">Classes</a>
34
+ <a href="../table_of_contents.html#methods">Methods</a>
35
+ </div>
36
+ </div>
37
+
38
+ <div id="search-section" role="search" class="project-section initially-hidden">
39
+ <form action="#" method="get" accept-charset="utf-8">
40
+ <div id="search-field-wrapper">
41
+ <input id="search-field" role="combobox" aria-label="Search"
42
+ aria-autocomplete="list" aria-controls="search-results"
43
+ type="text" name="search" placeholder="Search" spellcheck="false"
44
+ title="Type to search, Up and Down to navigate, Enter to load">
45
+ </div>
46
+
47
+ <ul id="search-results" aria-label="Search Results"
48
+ aria-busy="false" aria-expanded="false"
49
+ aria-atomic="false" class="initially-hidden"></ul>
50
+ </form>
51
+ </div>
52
+
53
+ </div>
54
+
55
+
56
+
57
+ <div id="class-metadata">
58
+
59
+
60
+
61
+
62
+ <!-- Method Quickref -->
63
+ <div id="method-list-section" class="nav-section">
64
+ <h3>Methods</h3>
65
+
66
+ <ul class="link-list" role="directory">
67
+
68
+ <li ><a href="#method-i-test_parsable_duck_type">#test_parsable_duck_type</a>
69
+
70
+ </ul>
71
+ </div>
72
+
73
+ </div>
74
+ </nav>
75
+
76
+ <main role="main" aria-labelledby="module-Gravaty::ParsableDuckType">
77
+ <h1 id="module-Gravaty::ParsableDuckType" class="module">
78
+ module Gravaty::ParsableDuckType
79
+ </h1>
80
+
81
+ <section class="description">
82
+
83
+ <p>This module represents the parsable duck type element for testing purposes.</p>
84
+ <dl class="rdoc-list note-list"><dt>Author
85
+ <dd>
86
+ <p><a href="mailto:marcobresciani_1974@libero.it">Marco Bresciani</a></p>
87
+ </dd><dt>Copyright
88
+ <dd>
89
+ <p>Copyright © 2013, 2014, 2015, 2016, 2017, 2018,</p>
90
+ </dd></dl>
91
+
92
+ <p>2019 Marco Bresciani</p>
93
+ <dl class="rdoc-list note-list"><dt>License
94
+ <dd>
95
+ <p>GNU General Public License version 3</p>
96
+ </dd></dl>
97
+
98
+ </section>
99
+
100
+
101
+ <section id="5Buntitled-5D" class="documentation-section">
102
+
103
+
104
+
105
+
106
+
107
+
108
+
109
+
110
+
111
+ <section id="public-instance-5Buntitled-5D-method-details" class="method-section">
112
+ <header>
113
+ <h3>Public Instance Methods</h3>
114
+ </header>
115
+
116
+
117
+ <div id="method-i-test_parsable_duck_type" class="method-detail ">
118
+
119
+ <div class="method-heading">
120
+ <span class="method-name">test_parsable_duck_type</span><span
121
+ class="method-args">()</span>
122
+
123
+ <span class="method-click-advice">click to toggle source</span>
124
+
125
+ </div>
126
+
127
+
128
+ <div class="method-description">
129
+
130
+ <p>The method that tests the parsable duck type interface and its <code>parse</code> method.</p>
131
+
132
+
133
+
134
+
135
+ <div class="method-source-code" id="test_parsable_duck_type-source">
136
+ <pre> <span class="ruby-comment"># File test/test_helper.rb</span>
137
+ <span class="line-num">101</span> <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">test_parsable_duck_type</span>
138
+ <span class="line-num">102</span> <span class="ruby-identifier">subject</span>.<span class="ruby-identifier">must_respond_to</span> <span class="ruby-value">:parse</span> <span class="ruby-keyword">unless</span> <span class="ruby-identifier">subject</span>.<span class="ruby-identifier">nil?</span>
139
+ <span class="line-num">103</span> <span class="ruby-keyword">end</span></pre>
140
+ </div>
141
+
142
+ </div>
143
+
144
+
145
+
146
+
147
+ </div>
148
+
149
+
150
+ </section>
151
+
152
+ </section>
153
+
154
+ </main>
155
+
156
+
157
+ <footer id="validator-badges" role="contentinfo">
158
+ <p><a href="https://validator.w3.org/check/referer">Validate</a>
159
+ <p>Generated by <a href="https://ruby.github.io/rdoc/">RDoc</a> 6.1.1.
160
+ <p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
161
+ </footer>
162
+
@@ -0,0 +1,239 @@
1
+ <!DOCTYPE html>
2
+
3
+ <html>
4
+ <head>
5
+ <meta charset="UTF-8">
6
+
7
+ <title>class Gravaty::Parser - gravaty 9.0.0</title>
8
+
9
+ <script type="text/javascript">
10
+ var rdoc_rel_prefix = "../";
11
+ var index_rel_prefix = "../";
12
+ </script>
13
+
14
+ <script src="../js/jquery.js"></script>
15
+ <script src="../js/darkfish.js"></script>
16
+
17
+ <link href="../css/fonts.css" rel="stylesheet">
18
+ <link href="../css/rdoc.css" rel="stylesheet">
19
+
20
+
21
+
22
+
23
+ <body id="top" role="document" class="class">
24
+ <nav role="navigation">
25
+ <div id="project-navigation">
26
+ <div id="home-section" role="region" title="Quick navigation" class="nav-section">
27
+ <h2>
28
+ <a href="../index.html" rel="home">Home</a>
29
+ </h2>
30
+
31
+ <div id="table-of-contents-navigation">
32
+ <a href="../table_of_contents.html#pages">Pages</a>
33
+ <a href="../table_of_contents.html#classes">Classes</a>
34
+ <a href="../table_of_contents.html#methods">Methods</a>
35
+ </div>
36
+ </div>
37
+
38
+ <div id="search-section" role="search" class="project-section initially-hidden">
39
+ <form action="#" method="get" accept-charset="utf-8">
40
+ <div id="search-field-wrapper">
41
+ <input id="search-field" role="combobox" aria-label="Search"
42
+ aria-autocomplete="list" aria-controls="search-results"
43
+ type="text" name="search" placeholder="Search" spellcheck="false"
44
+ title="Type to search, Up and Down to navigate, Enter to load">
45
+ </div>
46
+
47
+ <ul id="search-results" aria-label="Search Results"
48
+ aria-busy="false" aria-expanded="false"
49
+ aria-atomic="false" class="initially-hidden"></ul>
50
+ </form>
51
+ </div>
52
+
53
+ </div>
54
+
55
+
56
+
57
+ <div id="class-metadata">
58
+
59
+ <div id="parent-class-section" class="nav-section">
60
+ <h3>Parent</h3>
61
+
62
+
63
+ <p class="link"><a href="../Object.html">Object</a>
64
+
65
+ </div>
66
+
67
+
68
+
69
+ <!-- Method Quickref -->
70
+ <div id="method-list-section" class="nav-section">
71
+ <h3>Methods</h3>
72
+
73
+ <ul class="link-list" role="directory">
74
+
75
+ <li ><a href="#method-c-new">::new</a>
76
+
77
+ <li ><a href="#method-i-parse">#parse</a>
78
+
79
+ </ul>
80
+ </div>
81
+
82
+ </div>
83
+ </nav>
84
+
85
+ <main role="main" aria-labelledby="class-Gravaty::Parser">
86
+ <h1 id="class-Gravaty::Parser" class="class">
87
+ class Gravaty::Parser
88
+ </h1>
89
+
90
+ <section class="description">
91
+
92
+ <p>This class is a simple utility that is used to <a href="Parser.html#method-i-parse"><code>parse</code></a> and filter parameters for gravaty.</p>
93
+ <dl class="rdoc-list note-list"><dt>Author
94
+ <dd>
95
+ <p><a href="mailto:marcobresciani_1974@libero.it">Marco Bresciani</a></p>
96
+ </dd><dt>Copyright
97
+ <dd>
98
+ <p>Copyright © 2013, 2014, 2015, 2016, 2017, 2018,</p>
99
+ </dd></dl>
100
+
101
+ <p>2019 Marco Bresciani</p>
102
+ <dl class="rdoc-list note-list"><dt>License
103
+ <dd>
104
+ <p>GNU General Public License version 3</p>
105
+ </dd></dl>
106
+
107
+ </section>
108
+
109
+
110
+ <section id="5Buntitled-5D" class="documentation-section">
111
+
112
+
113
+
114
+
115
+
116
+
117
+
118
+ <section class="attribute-method-details" class="method-section">
119
+ <header>
120
+ <h3>Attributes</h3>
121
+ </header>
122
+
123
+
124
+ <div id="attribute-i-parsers" class="method-detail">
125
+ <div class="method-heading attribute-method-heading">
126
+ <span class="method-name">parsers</span><span
127
+ class="attribute-access-type">[R]</span>
128
+ </div>
129
+
130
+ <div class="method-description">
131
+
132
+
133
+
134
+ </div>
135
+ </div>
136
+
137
+ </section>
138
+
139
+
140
+
141
+ <section id="public-class-5Buntitled-5D-method-details" class="method-section">
142
+ <header>
143
+ <h3>Public Class Methods</h3>
144
+ </header>
145
+
146
+
147
+ <div id="method-c-new" class="method-detail ">
148
+
149
+ <div class="method-heading">
150
+ <span class="method-name">new</span><span
151
+ class="method-args">(args = {})</span>
152
+
153
+ <span class="method-click-advice">click to toggle source</span>
154
+
155
+ </div>
156
+
157
+
158
+ <div class="method-description">
159
+
160
+
161
+
162
+
163
+
164
+
165
+ <div class="method-source-code" id="new-source">
166
+ <pre> <span class="ruby-comment"># File lib/gravaty/parser.rb</span>
167
+ <span class="line-num">35</span> <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">initialize</span>(<span class="ruby-identifier">args</span> = {})
168
+ <span class="line-num">36</span> <span class="ruby-ivar">@parsers</span> = <span class="ruby-constant">Hash</span>.<span class="ruby-identifier">new</span>
169
+ <span class="line-num">37</span> <span class="ruby-constant">ALLOWED_PARAMS</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">param</span><span class="ruby-operator">|</span>
170
+ <span class="line-num">38</span> <span class="ruby-identifier">parsers</span>[<span class="ruby-identifier">param</span>] = <span class="ruby-identifier">args</span>[<span class="ruby-identifier">param</span>]
171
+ <span class="line-num">39</span> <span class="ruby-keyword">end</span> <span class="ruby-keyword">unless</span> <span class="ruby-identifier">args</span>.<span class="ruby-identifier">nil?</span>
172
+ <span class="line-num">40</span> <span class="ruby-keyword">end</span></pre>
173
+ </div>
174
+
175
+ </div>
176
+
177
+
178
+
179
+
180
+ </div>
181
+
182
+
183
+ </section>
184
+
185
+ <section id="public-instance-5Buntitled-5D-method-details" class="method-section">
186
+ <header>
187
+ <h3>Public Instance Methods</h3>
188
+ </header>
189
+
190
+
191
+ <div id="method-i-parse" class="method-detail ">
192
+
193
+ <div class="method-heading">
194
+ <span class="method-name">parse</span><span
195
+ class="method-args">(method = nil, value = nil)</span>
196
+
197
+ <span class="method-click-advice">click to toggle source</span>
198
+
199
+ </div>
200
+
201
+
202
+ <div class="method-description">
203
+
204
+ <p>Provides the duck type for a generic parsing object.</p>
205
+
206
+
207
+
208
+
209
+ <div class="method-source-code" id="parse-source">
210
+ <pre> <span class="ruby-comment"># File lib/gravaty/parser.rb</span>
211
+ <span class="line-num">43</span> <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">parse</span>(<span class="ruby-identifier">method</span> = <span class="ruby-keyword">nil</span>, <span class="ruby-identifier">value</span> = <span class="ruby-keyword">nil</span>)
212
+ <span class="line-num">44</span> <span class="ruby-identifier">a_parser</span> = <span class="ruby-keyword">nil</span>
213
+ <span class="line-num">45</span> <span class="ruby-identifier">a_parser</span> = <span class="ruby-identifier">parsers</span>[<span class="ruby-identifier">method</span>.<span class="ruby-identifier">to_sym</span>] <span class="ruby-keyword">unless</span> <span class="ruby-identifier">method</span>.<span class="ruby-identifier">nil?</span> <span class="ruby-keyword">or</span>
214
+ <span class="line-num">46</span> <span class="ruby-identifier">parsers</span>.<span class="ruby-identifier">nil?</span>
215
+ <span class="line-num">47</span> <span class="ruby-identifier">a_parser</span>.<span class="ruby-identifier">parse</span> <span class="ruby-identifier">value</span> <span class="ruby-keyword">unless</span> <span class="ruby-identifier">a_parser</span>.<span class="ruby-identifier">nil?</span>
216
+ <span class="line-num">48</span> <span class="ruby-keyword">end</span></pre>
217
+ </div>
218
+
219
+ </div>
220
+
221
+
222
+
223
+
224
+ </div>
225
+
226
+
227
+ </section>
228
+
229
+ </section>
230
+
231
+ </main>
232
+
233
+
234
+ <footer id="validator-badges" role="contentinfo">
235
+ <p><a href="https://validator.w3.org/check/referer">Validate</a>
236
+ <p>Generated by <a href="https://ruby.github.io/rdoc/">RDoc</a> 6.1.1.
237
+ <p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
238
+ </footer>
239
+
@@ -0,0 +1,169 @@
1
+ <!DOCTYPE html>
2
+
3
+ <html>
4
+ <head>
5
+ <meta charset="UTF-8">
6
+
7
+ <title>class Gravaty::Parsers::Avatar - gravaty 9.0.0</title>
8
+
9
+ <script type="text/javascript">
10
+ var rdoc_rel_prefix = "../../";
11
+ var index_rel_prefix = "../../";
12
+ </script>
13
+
14
+ <script src="../../js/jquery.js"></script>
15
+ <script src="../../js/darkfish.js"></script>
16
+
17
+ <link href="../../css/fonts.css" rel="stylesheet">
18
+ <link href="../../css/rdoc.css" rel="stylesheet">
19
+
20
+
21
+
22
+
23
+ <body id="top" role="document" class="class">
24
+ <nav role="navigation">
25
+ <div id="project-navigation">
26
+ <div id="home-section" role="region" title="Quick navigation" class="nav-section">
27
+ <h2>
28
+ <a href="../../index.html" rel="home">Home</a>
29
+ </h2>
30
+
31
+ <div id="table-of-contents-navigation">
32
+ <a href="../../table_of_contents.html#pages">Pages</a>
33
+ <a href="../../table_of_contents.html#classes">Classes</a>
34
+ <a href="../../table_of_contents.html#methods">Methods</a>
35
+ </div>
36
+ </div>
37
+
38
+ <div id="search-section" role="search" class="project-section initially-hidden">
39
+ <form action="#" method="get" accept-charset="utf-8">
40
+ <div id="search-field-wrapper">
41
+ <input id="search-field" role="combobox" aria-label="Search"
42
+ aria-autocomplete="list" aria-controls="search-results"
43
+ type="text" name="search" placeholder="Search" spellcheck="false"
44
+ title="Type to search, Up and Down to navigate, Enter to load">
45
+ </div>
46
+
47
+ <ul id="search-results" aria-label="Search Results"
48
+ aria-busy="false" aria-expanded="false"
49
+ aria-atomic="false" class="initially-hidden"></ul>
50
+ </form>
51
+ </div>
52
+
53
+ </div>
54
+
55
+
56
+
57
+ <div id="class-metadata">
58
+
59
+ <div id="parent-class-section" class="nav-section">
60
+ <h3>Parent</h3>
61
+
62
+
63
+ <p class="link"><a href="../../Object.html">Object</a>
64
+
65
+ </div>
66
+
67
+
68
+
69
+ <!-- Method Quickref -->
70
+ <div id="method-list-section" class="nav-section">
71
+ <h3>Methods</h3>
72
+
73
+ <ul class="link-list" role="directory">
74
+
75
+ <li ><a href="#method-i-parse">#parse</a>
76
+
77
+ </ul>
78
+ </div>
79
+
80
+ </div>
81
+ </nav>
82
+
83
+ <main role="main" aria-labelledby="class-Gravaty::Parsers::Avatar">
84
+ <h1 id="class-Gravaty::Parsers::Avatar" class="class">
85
+ class Gravaty::Parsers::Avatar
86
+ </h1>
87
+
88
+ <section class="description">
89
+
90
+ <p>This class is an implementation of the Parsable duck type that checks for avater or profile URI. The only needed parameter is a boolean, with <code>true</code> for avatar.</p>
91
+ <dl class="rdoc-list note-list"><dt>Author
92
+ <dd>
93
+ <p><a href="mailto:marcobresciani_1974@libero.it">Marco Bresciani</a></p>
94
+ </dd><dt>Copyright
95
+ <dd>
96
+ <p>Copyright © 2013, 2014, 2015, 2016, 2017, 2018,</p>
97
+ </dd></dl>
98
+
99
+ <p>2019 Marco Bresciani</p>
100
+ <dl class="rdoc-list note-list"><dt>License
101
+ <dd>
102
+ <p>GNU General Public License version 3</p>
103
+ </dd></dl>
104
+
105
+ </section>
106
+
107
+
108
+ <section id="5Buntitled-5D" class="documentation-section">
109
+
110
+
111
+
112
+
113
+
114
+
115
+
116
+
117
+
118
+ <section id="public-instance-5Buntitled-5D-method-details" class="method-section">
119
+ <header>
120
+ <h3>Public Instance Methods</h3>
121
+ </header>
122
+
123
+
124
+ <div id="method-i-parse" class="method-detail ">
125
+
126
+ <div class="method-heading">
127
+ <span class="method-name">parse</span><span
128
+ class="method-args">(value = true)</span>
129
+
130
+ <span class="method-click-advice">click to toggle source</span>
131
+
132
+ </div>
133
+
134
+
135
+ <div class="method-description">
136
+
137
+ <p>The parsable duck type interface to every parser usage.</p>
138
+
139
+
140
+
141
+
142
+ <div class="method-source-code" id="parse-source">
143
+ <pre> <span class="ruby-comment"># File lib/gravaty/parsers/avatar.rb</span>
144
+ <span class="line-num">35</span> <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">parse</span>(<span class="ruby-identifier">value</span> = <span class="ruby-keyword">true</span>)
145
+ <span class="line-num">36</span> <span class="ruby-identifier">value</span> <span class="ruby-operator">?</span> <span class="ruby-string">&#39;avatar/&#39;</span> <span class="ruby-operator">:</span> <span class="ruby-string">&#39;&#39;</span>
146
+ <span class="line-num">37</span> <span class="ruby-keyword">end</span></pre>
147
+ </div>
148
+
149
+ </div>
150
+
151
+
152
+
153
+
154
+ </div>
155
+
156
+
157
+ </section>
158
+
159
+ </section>
160
+
161
+ </main>
162
+
163
+
164
+ <footer id="validator-badges" role="contentinfo">
165
+ <p><a href="https://validator.w3.org/check/referer">Validate</a>
166
+ <p>Generated by <a href="https://ruby.github.io/rdoc/">RDoc</a> 6.1.1.
167
+ <p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
168
+ </footer>
169
+