repository-support 0.1.1 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,282 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>
7
+ Module: Repository::Support::TestAttributeContainer
8
+
9
+ &mdash; Documentation by YARD 0.9.12
10
+
11
+ </title>
12
+
13
+ <link rel="stylesheet" href="../../css/style.css" type="text/css" charset="utf-8" />
14
+
15
+ <link rel="stylesheet" href="../../css/common.css" type="text/css" charset="utf-8" />
16
+
17
+ <script type="text/javascript" charset="utf-8">
18
+ pathId = "Repository::Support::TestAttributeContainer";
19
+ relpath = '../../';
20
+ </script>
21
+
22
+
23
+ <script type="text/javascript" charset="utf-8" src="../../js/jquery.js"></script>
24
+
25
+ <script type="text/javascript" charset="utf-8" src="../../js/app.js"></script>
26
+
27
+
28
+ </head>
29
+ <body>
30
+ <div class="nav_wrap">
31
+ <iframe id="nav" src="../../class_list.html?1"></iframe>
32
+ <div id="resizer"></div>
33
+ </div>
34
+
35
+ <div id="main" tabindex="-1">
36
+ <div id="header">
37
+ <div id="menu">
38
+
39
+ <a href="../../_index.html">Index (T)</a> &raquo;
40
+ <span class='title'><span class='object_link'><a href="../../Repository.html" title="Repository (module)">Repository</a></span></span> &raquo; <span class='title'><span class='object_link'><a href="../Support.html" title="Repository::Support (module)">Support</a></span></span>
41
+ &raquo;
42
+ <span class="title">TestAttributeContainer</span>
43
+
44
+ </div>
45
+
46
+ <div id="search">
47
+
48
+ <a class="full_list_link" id="class_list_link"
49
+ href="../../class_list.html">
50
+
51
+ <svg width="24" height="24">
52
+ <rect x="0" y="4" width="24" height="4" rx="1" ry="1"></rect>
53
+ <rect x="0" y="12" width="24" height="4" rx="1" ry="1"></rect>
54
+ <rect x="0" y="20" width="24" height="4" rx="1" ry="1"></rect>
55
+ </svg>
56
+ </a>
57
+
58
+ </div>
59
+ <div class="clear"></div>
60
+ </div>
61
+
62
+ <div id="content"><h1>Module: Repository::Support::TestAttributeContainer
63
+
64
+
65
+
66
+ </h1>
67
+ <div class="box_info">
68
+
69
+
70
+
71
+
72
+
73
+
74
+
75
+
76
+
77
+
78
+
79
+ <dl>
80
+ <dt>Defined in:</dt>
81
+ <dd>lib/repository/support/test_attribute_container.rb</dd>
82
+ </dl>
83
+
84
+ </div>
85
+
86
+ <h2>Overview</h2><div class="docstring">
87
+ <div class="discussion">
88
+
89
+ <p>Adds :attributes property to caller, and enhanced attribute getter/setter.</p>
90
+
91
+
92
+ </div>
93
+ </div>
94
+ <div class="tags">
95
+
96
+
97
+ </div>
98
+
99
+
100
+
101
+
102
+
103
+
104
+
105
+ <h2>
106
+ Instance Method Summary
107
+ <small><a href="#" class="summary_toggle">collapse</a></small>
108
+ </h2>
109
+
110
+ <ul class="summary">
111
+
112
+ <li class="public ">
113
+ <span class="summary_signature">
114
+
115
+ <a href="#init_empty_attribute_container-instance_method" title="#init_empty_attribute_container (instance method)">#<strong>init_empty_attribute_container</strong> &#x21d2; Object </a>
116
+
117
+
118
+
119
+ </span>
120
+
121
+
122
+
123
+
124
+
125
+
126
+
127
+
128
+
129
+ <span class="summary_desc"><div class='inline'>
130
+ <p>rubocop:disable Metrics/AbcSize rubocop:disable
131
+ Metrics/CyclomaticComplexity rubocop:disable Metrics/MethodLength.</p>
132
+ </div></span>
133
+
134
+ </li>
135
+
136
+
137
+ </ul>
138
+
139
+
140
+
141
+
142
+ <div id="instance_method_details" class="method_details_list">
143
+ <h2>Instance Method Details</h2>
144
+
145
+
146
+ <div class="method_details first">
147
+ <h3 class="signature first" id="init_empty_attribute_container-instance_method">
148
+
149
+ #<strong>init_empty_attribute_container</strong> &#x21d2; <tt>Object</tt>
150
+
151
+
152
+
153
+
154
+
155
+ </h3><div class="docstring">
156
+ <div class="discussion">
157
+
158
+ <p>rubocop:disable Metrics/AbcSize rubocop:disable
159
+ Metrics/CyclomaticComplexity rubocop:disable Metrics/MethodLength</p>
160
+
161
+
162
+ </div>
163
+ </div>
164
+ <div class="tags">
165
+
166
+
167
+ </div><table class="source_code">
168
+ <tr>
169
+ <td>
170
+ <pre class="lines">
171
+
172
+
173
+ 12
174
+ 13
175
+ 14
176
+ 15
177
+ 16
178
+ 17
179
+ 18
180
+ 19
181
+ 20
182
+ 21
183
+ 22
184
+ 23
185
+ 24
186
+ 25
187
+ 26
188
+ 27
189
+ 28
190
+ 29
191
+ 30
192
+ 31
193
+ 32
194
+ 33
195
+ 34
196
+ 35
197
+ 36
198
+ 37
199
+ 38
200
+ 39
201
+ 40
202
+ 41
203
+ 42
204
+ 43
205
+ 44
206
+ 45
207
+ 46
208
+ 47
209
+ 48
210
+ 49
211
+ 50
212
+ 51
213
+ 52
214
+ 53
215
+ 54
216
+ 55</pre>
217
+ </td>
218
+ <td>
219
+ <pre class="code"><span class="info file"># File 'lib/repository/support/test_attribute_container.rb', line 12</span>
220
+
221
+ <span class='kw'>def</span> <span class='id identifier rubyid_init_empty_attribute_container'>init_empty_attribute_container</span>
222
+ <span class='id identifier rubyid_define_method'>define_method</span> <span class='symbol'>:attributes</span> <span class='kw'>do</span>
223
+ <span class='ivar'>@attributes</span> <span class='op'>||=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span>
224
+ <span class='kw'>end</span>
225
+
226
+ <span class='id identifier rubyid_define_method'>define_method</span><span class='lparen'>(</span><span class='symbol'>:attributes=</span><span class='rparen'>)</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_attribs'>attribs</span><span class='op'>|</span>
227
+ <span class='ivar'>@attributes</span> <span class='op'>=</span> <span class='id identifier rubyid_attribs'>attribs</span><span class='period'>.</span><span class='id identifier rubyid_to_h'>to_h</span>
228
+ <span class='kw'>end</span>
229
+
230
+ <span class='id identifier rubyid_define_method'>define_method</span><span class='lparen'>(</span><span class='symbol'>:method_missing</span><span class='rparen'>)</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_method_sym'>method_sym</span><span class='comma'>,</span> <span class='op'>*</span><span class='id identifier rubyid_arguments'>arguments</span><span class='comma'>,</span> <span class='op'>&amp;</span><span class='id identifier rubyid_block'>block</span><span class='op'>|</span>
231
+ <span class='id identifier rubyid_method_or_type'>method_or_type</span> <span class='op'>=</span> <span class='id identifier rubyid_attribute_key_for?'>attribute_key_for?</span><span class='lparen'>(</span><span class='id identifier rubyid_method_sym'>method_sym</span><span class='rparen'>)</span>
232
+ <span class='kw'>case</span> <span class='id identifier rubyid_method_or_type'>method_or_type</span>
233
+ <span class='kw'>when</span> <span class='symbol'>:none</span>
234
+ <span class='kw'>super</span> <span class='id identifier rubyid_method_sym'>method_sym</span><span class='comma'>,</span> <span class='id identifier rubyid_arguments'>arguments</span><span class='comma'>,</span> <span class='id identifier rubyid_block'>block</span>
235
+ <span class='kw'>when</span> <span class='symbol'>:reader</span>
236
+ <span class='id identifier rubyid_attributes'>attributes</span><span class='lbracket'>[</span><span class='id identifier rubyid_method_sym'>method_sym</span><span class='rbracket'>]</span>
237
+ <span class='kw'>else</span>
238
+ <span class='id identifier rubyid_attributes'>attributes</span><span class='lbracket'>[</span><span class='id identifier rubyid_method_or_type'>method_or_type</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='id identifier rubyid_arguments'>arguments</span><span class='period'>.</span><span class='id identifier rubyid_first'>first</span>
239
+ <span class='kw'>end</span>
240
+ <span class='kw'>end</span>
241
+
242
+ <span class='id identifier rubyid_define_method'>define_method</span><span class='lparen'>(</span><span class='symbol'>:respond_to?</span><span class='rparen'>)</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_method_sym'>method_sym</span><span class='comma'>,</span> <span class='id identifier rubyid_include_private'>include_private</span> <span class='op'>=</span> <span class='kw'>false</span><span class='op'>|</span>
243
+ <span class='kw'>return</span> <span class='kw'>true</span> <span class='kw'>unless</span> <span class='id identifier rubyid_attribute_key_for?'>attribute_key_for?</span><span class='lparen'>(</span><span class='id identifier rubyid_method_sym'>method_sym</span><span class='rparen'>)</span> <span class='op'>==</span> <span class='symbol'>:none</span>
244
+ <span class='kw'>super</span> <span class='id identifier rubyid_method_sym'>method_sym</span><span class='comma'>,</span> <span class='id identifier rubyid_include_private'>include_private</span>
245
+ <span class='kw'>end</span>
246
+
247
+ <span class='comment'># private
248
+ </span> <span class='id identifier rubyid_define_method'>define_method</span><span class='lparen'>(</span><span class='symbol'>:attribute_key_for?</span><span class='rparen'>)</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_key_sym'>key_sym</span><span class='op'>|</span>
249
+ <span class='kw'>if</span> <span class='id identifier rubyid_attributes'>attributes</span><span class='period'>.</span><span class='id identifier rubyid_to_h'>to_h</span><span class='period'>.</span><span class='id identifier rubyid_key?'>key?</span> <span class='id identifier rubyid_key_sym'>key_sym</span>
250
+ <span class='symbol'>:reader</span>
251
+ <span class='kw'>else</span>
252
+ <span class='id identifier rubyid_setter_for_or_none'>setter_for_or_none</span><span class='lparen'>(</span><span class='id identifier rubyid_key_sym'>key_sym</span><span class='rparen'>)</span>
253
+ <span class='kw'>end</span>
254
+ <span class='kw'>end</span>
255
+
256
+ <span class='comment'># private
257
+ </span> <span class='id identifier rubyid_define_method'>define_method</span> <span class='symbol'>:setter_for_or_none</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_key'>key</span><span class='op'>|</span>
258
+ <span class='id identifier rubyid_match'>match</span> <span class='op'>=</span> <span class='id identifier rubyid_key'>key</span><span class='period'>.</span><span class='id identifier rubyid_to_s'>to_s</span><span class='period'>.</span><span class='id identifier rubyid_match'>match</span><span class='lparen'>(</span><span class='tstring'><span class='regexp_beg'>/</span><span class='tstring_content'>(\S+?)=</span><span class='regexp_end'>/</span></span><span class='rparen'>)</span>
259
+ <span class='id identifier rubyid_has_setter'>has_setter</span> <span class='op'>=</span> <span class='id identifier rubyid_match'>match</span> <span class='op'>&amp;&amp;</span> <span class='id identifier rubyid_attributes'>attributes</span><span class='period'>.</span><span class='id identifier rubyid_key?'>key?</span><span class='lparen'>(</span><span class='id identifier rubyid_match'>match</span><span class='lbracket'>[</span><span class='int'>1</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_to_sym'>to_sym</span><span class='rparen'>)</span>
260
+ <span class='id identifier rubyid_has_setter'>has_setter</span> <span class='op'>?</span> <span class='id identifier rubyid_match'>match</span><span class='lbracket'>[</span><span class='int'>1</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_to_sym'>to_sym</span> <span class='op'>:</span> <span class='symbol'>:none</span>
261
+ <span class='kw'>end</span>
262
+ <span class='id identifier rubyid_instance_eval'>instance_eval</span> <span class='lbrace'>{</span> <span class='id identifier rubyid_private'>private</span> <span class='symbol'>:attribute_key_for?</span><span class='comma'>,</span> <span class='symbol'>:setter_for_or_none</span> <span class='rbrace'>}</span>
263
+ <span class='kw'>self</span>
264
+ <span class='kw'>end</span></pre>
265
+ </td>
266
+ </tr>
267
+ </table>
268
+ </div>
269
+
270
+ </div>
271
+
272
+ </div>
273
+
274
+ <div id="footer">
275
+ Generated on Sun Feb 4 17:26:37 2018 by
276
+ <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
277
+ 0.9.12 (ruby-2.5.0).
278
+ </div>
279
+
280
+ </div>
281
+ </body>
282
+ </html>
@@ -0,0 +1,188 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>
7
+ Documentation by YARD 0.9.12
8
+
9
+ </title>
10
+
11
+ <link rel="stylesheet" href="css/style.css" type="text/css" charset="utf-8" />
12
+
13
+ <link rel="stylesheet" href="css/common.css" type="text/css" charset="utf-8" />
14
+
15
+ <script type="text/javascript" charset="utf-8">
16
+ pathId = null;
17
+ relpath = '';
18
+ </script>
19
+
20
+
21
+ <script type="text/javascript" charset="utf-8" src="js/jquery.js"></script>
22
+
23
+ <script type="text/javascript" charset="utf-8" src="js/app.js"></script>
24
+
25
+
26
+ </head>
27
+ <body>
28
+ <div class="nav_wrap">
29
+ <iframe id="nav" src="class_list.html?1"></iframe>
30
+ <div id="resizer"></div>
31
+ </div>
32
+
33
+ <div id="main" tabindex="-1">
34
+ <div id="header">
35
+ <div id="menu">
36
+
37
+ </div>
38
+
39
+ <div id="search">
40
+
41
+ <a class="full_list_link" id="class_list_link"
42
+ href="class_list.html">
43
+
44
+ <svg width="24" height="24">
45
+ <rect x="0" y="4" width="24" height="4" rx="1" ry="1"></rect>
46
+ <rect x="0" y="12" width="24" height="4" rx="1" ry="1"></rect>
47
+ <rect x="0" y="20" width="24" height="4" rx="1" ry="1"></rect>
48
+ </svg>
49
+ </a>
50
+
51
+ </div>
52
+ <div class="clear"></div>
53
+ </div>
54
+
55
+ <div id="content"><h1 class="noborder title">Documentation by YARD 0.9.12</h1>
56
+ <div id="listing">
57
+ <h1 class="alphaindex">Alphabetic Index</h1>
58
+
59
+ <h2>File Listing</h2>
60
+ <ul id="files" class="index_inline_list">
61
+
62
+
63
+ <li class="r1"><a href="index.html" title="README">README</a></li>
64
+
65
+
66
+ </ul>
67
+
68
+ <div class="clear"></div>
69
+ <h2>Namespace Listing A-Z</h2>
70
+
71
+
72
+
73
+
74
+ <table>
75
+ <tr>
76
+ <td valign='top' width="33%">
77
+
78
+
79
+ <ul id="alpha_E" class="alpha">
80
+ <li class="letter">E</li>
81
+ <ul>
82
+
83
+ <li>
84
+ <span class='object_link'><a href="Repository/Support/ErrorFactory.html" title="Repository::Support::ErrorFactory (class)">ErrorFactory</a></span>
85
+
86
+ <small>(Repository::Support)</small>
87
+
88
+ </li>
89
+
90
+ </ul>
91
+ </ul>
92
+
93
+
94
+ <ul id="alpha_F" class="alpha">
95
+ <li class="letter">F</li>
96
+ <ul>
97
+
98
+ <li>
99
+ <span class='object_link'><a href="Repository/Support/StoreResult/Failure.html" title="Repository::Support::StoreResult::Failure (class)">Failure</a></span>
100
+
101
+ <small>(Repository::Support::StoreResult)</small>
102
+
103
+ </li>
104
+
105
+ </ul>
106
+ </ul>
107
+
108
+
109
+ <ul id="alpha_R" class="alpha">
110
+ <li class="letter">R</li>
111
+ <ul>
112
+
113
+ <li>
114
+ <span class='object_link'><a href="Repository.html" title="Repository (module)">Repository</a></span>
115
+
116
+ </li>
117
+
118
+ <li>
119
+ <span class='object_link'><a href="Repository/Support/ResultBuilder.html" title="Repository::Support::ResultBuilder (class)">ResultBuilder</a></span>
120
+
121
+ <small>(Repository::Support)</small>
122
+
123
+ </li>
124
+
125
+ </ul>
126
+ </ul>
127
+
128
+
129
+ <ul id="alpha_S" class="alpha">
130
+ <li class="letter">S</li>
131
+ <ul>
132
+
133
+ <li>
134
+ <span class='object_link'><a href="Repository/Support/StoreResult.html" title="Repository::Support::StoreResult (class)">StoreResult</a></span>
135
+
136
+ <small>(Repository::Support)</small>
137
+
138
+ </li>
139
+
140
+ <li>
141
+ <span class='object_link'><a href="Repository/Support/StoreResult/Success.html" title="Repository::Support::StoreResult::Success (class)">Success</a></span>
142
+
143
+ <small>(Repository::Support::StoreResult)</small>
144
+
145
+ </li>
146
+
147
+ <li>
148
+ <span class='object_link'><a href="Repository/Support.html" title="Repository::Support (module)">Support</a></span>
149
+
150
+ <small>(Repository)</small>
151
+
152
+ </li>
153
+
154
+ </ul>
155
+ </ul>
156
+
157
+
158
+ <ul id="alpha_T" class="alpha">
159
+ <li class="letter">T</li>
160
+ <ul>
161
+
162
+ <li>
163
+ <span class='object_link'><a href="Repository/Support/TestAttributeContainer.html" title="Repository::Support::TestAttributeContainer (module)">TestAttributeContainer</a></span>
164
+
165
+ <small>(Repository::Support)</small>
166
+
167
+ </li>
168
+
169
+ </ul>
170
+ </ul>
171
+
172
+ </td>
173
+ </tr>
174
+ </table>
175
+
176
+ </div>
177
+
178
+ </div>
179
+
180
+ <div id="footer">
181
+ Generated on Sun Feb 4 17:26:36 2018 by
182
+ <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
183
+ 0.9.12 (ruby-2.5.0).
184
+ </div>
185
+
186
+ </div>
187
+ </body>
188
+ </html>