shenanigans 1.0.14 → 1.0.15

Sign up to get free protection for your applications and to get access to all the features.
data/doc/Module.html DELETED
@@ -1,233 +0,0 @@
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
- Class: Module
8
-
9
- &mdash; Documentation by YARD 0.9.24
10
-
11
- </title>
12
-
13
- <link rel="stylesheet" href="css/style.css" type="text/css" />
14
-
15
- <link rel="stylesheet" href="css/common.css" type="text/css" />
16
-
17
- <script type="text/javascript">
18
- pathId = "Module";
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 (M)</a> &raquo;
40
-
41
-
42
- <span class="title">Module</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>Class: Module
63
-
64
-
65
-
66
- </h1>
67
- <div class="box_info">
68
-
69
- <dl>
70
- <dt>Inherits:</dt>
71
- <dd>
72
- <span class="inheritName"><span class='object_link'><a href="Object.html" title="Object (class)">Object</a></span></span>
73
-
74
- <ul class="fullTree">
75
- <li><span class='object_link'><a href="Object.html" title="Object (class)">Object</a></span></li>
76
-
77
- <li class="next">Module</li>
78
-
79
- </ul>
80
- <a href="#" class="inheritanceTree">show all</a>
81
-
82
- </dd>
83
- </dl>
84
-
85
-
86
-
87
-
88
-
89
-
90
-
91
-
92
-
93
-
94
-
95
- <dl>
96
- <dt>Defined in:</dt>
97
- <dd>lib/shenanigans/module/private_accessor.rb</dd>
98
- </dl>
99
-
100
- </div>
101
-
102
-
103
-
104
-
105
-
106
-
107
-
108
-
109
-
110
- <h2>
111
- Instance Method Summary
112
- <small><a href="#" class="summary_toggle">collapse</a></small>
113
- </h2>
114
-
115
- <ul class="summary">
116
-
117
- <li class="private ">
118
- <span class="summary_signature">
119
-
120
- <a href="#private_accessor-instance_method" title="#private_accessor (instance method)">#<strong>private_accessor</strong>(*names) &#x21d2; Object </a>
121
-
122
-
123
-
124
- </span>
125
-
126
-
127
-
128
- <span class="note title private">private</span>
129
-
130
-
131
-
132
-
133
-
134
- <span class="summary_desc"><div class='inline'>
135
- <p>Works like <code>attr_accessor</code> but generates private getter/setter methods for class internal use only.</p>
136
- </div></span>
137
-
138
- </li>
139
-
140
-
141
- </ul>
142
-
143
-
144
-
145
-
146
- <div id="instance_method_details" class="method_details_list">
147
- <h2>Instance Method Details</h2>
148
-
149
-
150
- <div class="method_details first">
151
- <h3 class="signature first" id="private_accessor-instance_method">
152
-
153
- #<strong>private_accessor</strong>(*names) &#x21d2; <tt><span class='object_link'><a href="Object.html" title="Object (class)">Object</a></span></tt> <span class="extras">(private)</span>
154
-
155
-
156
-
157
-
158
-
159
- </h3><div class="docstring">
160
- <div class="discussion">
161
-
162
- <p>Works like <code>attr_accessor</code> but generates private getter/setter methods for class internal use only. Useful for enforcing Smalltalk-style internal encapsulation.</p>
163
-
164
- <p>For a more complete implementation of a similar feature see <a href="https://github.com/citizen428/ivar_encapsulation">ivar_encapsulation</a>.</p>
165
-
166
-
167
- </div>
168
- </div>
169
- <div class="tags">
170
-
171
-
172
- </div><table class="source_code">
173
- <tr>
174
- <td>
175
- <pre class="lines">
176
-
177
-
178
- 7
179
- 8
180
- 9
181
- 10
182
- 11
183
- 12
184
- 13
185
- 14
186
- 15
187
- 16
188
- 17
189
- 18
190
- 19
191
- 20
192
- 21
193
- 22
194
- 23</pre>
195
- </td>
196
- <td>
197
- <pre class="code"><span class="info file"># File 'lib/shenanigans/module/private_accessor.rb', line 7</span>
198
-
199
- <span class='kw'>def</span> <span class='id identifier rubyid_private_accessor'>private_accessor</span><span class='lparen'>(</span><span class='op'>*</span><span class='id identifier rubyid_names'>names</span><span class='rparen'>)</span>
200
- <span class='id identifier rubyid_names'>names</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_name'>name</span><span class='op'>|</span>
201
- <span class='id identifier rubyid_instance_var_name'>instance_var_name</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>@</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_name'>name</span><span class='embexpr_end'>}</span><span class='tstring_end'>&quot;</span></span>
202
-
203
- <span class='id identifier rubyid_define_method'>define_method</span><span class='lparen'>(</span><span class='id identifier rubyid_name'>name</span><span class='rparen'>)</span> <span class='kw'>do</span>
204
- <span class='id identifier rubyid_instance_variable_get'>instance_variable_get</span><span class='lparen'>(</span><span class='id identifier rubyid_instance_var_name'>instance_var_name</span><span class='rparen'>)</span>
205
- <span class='kw'>end</span>
206
-
207
- <span class='id identifier rubyid_define_method'>define_method</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_name'>name</span><span class='embexpr_end'>}</span><span class='tstring_content'>=</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_value'>value</span><span class='op'>|</span>
208
- <span class='id identifier rubyid_instance_variable_set'>instance_variable_set</span><span class='lparen'>(</span><span class='id identifier rubyid_instance_var_name'>instance_var_name</span><span class='comma'>,</span> <span class='id identifier rubyid_value'>value</span><span class='rparen'>)</span>
209
- <span class='kw'>end</span>
210
-
211
- <span class='id identifier rubyid_send'>send</span><span class='lparen'>(</span><span class='symbol'>:private</span><span class='comma'>,</span> <span class='id identifier rubyid_name'>name</span><span class='rparen'>)</span>
212
- <span class='id identifier rubyid_send'>send</span><span class='lparen'>(</span><span class='symbol'>:private</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_name'>name</span><span class='embexpr_end'>}</span><span class='tstring_content'>=</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span>
213
- <span class='kw'>end</span>
214
- <span class='kw'>nil</span> <span class='comment'># like attr_accessor
215
- </span><span class='kw'>end</span></pre>
216
- </td>
217
- </tr>
218
- </table>
219
- </div>
220
-
221
- </div>
222
-
223
- </div>
224
-
225
- <div id="footer">
226
- Generated on Tue May 5 19:54:28 2020 by
227
- <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
228
- 0.9.24 (ruby-2.7.1).
229
- </div>
230
-
231
- </div>
232
- </body>
233
- </html>
data/doc/Object.html DELETED
@@ -1,215 +0,0 @@
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
- Class: Object
8
-
9
- &mdash; Documentation by YARD 0.9.24
10
-
11
- </title>
12
-
13
- <link rel="stylesheet" href="css/style.css" type="text/css" />
14
-
15
- <link rel="stylesheet" href="css/common.css" type="text/css" />
16
-
17
- <script type="text/javascript">
18
- pathId = "Object";
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 (O)</a> &raquo;
40
-
41
-
42
- <span class="title">Object</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>Class: Object
63
-
64
-
65
-
66
- </h1>
67
- <div class="box_info">
68
-
69
- <dl>
70
- <dt>Inherits:</dt>
71
- <dd>
72
- <span class="inheritName">BasicObject</span>
73
-
74
- </dd>
75
- </dl>
76
-
77
-
78
-
79
-
80
-
81
-
82
-
83
-
84
-
85
-
86
-
87
- <dl>
88
- <dt>Defined in:</dt>
89
- <dd>lib/shenanigans/object/display.rb</dd>
90
- </dl>
91
-
92
- </div>
93
-
94
-
95
-
96
-
97
-
98
-
99
-
100
-
101
-
102
- <h2>
103
- Instance Method Summary
104
- <small><a href="#" class="summary_toggle">collapse</a></small>
105
- </h2>
106
-
107
- <ul class="summary">
108
-
109
- <li class="public ">
110
- <span class="summary_signature">
111
-
112
- <a href="#display-instance_method" title="#display (instance method)">#<strong>display</strong>(new_line = true) &#x21d2; Object </a>
113
-
114
-
115
-
116
- (also: #d)
117
-
118
- </span>
119
-
120
-
121
-
122
-
123
-
124
-
125
-
126
-
127
-
128
- <span class="summary_desc"><div class='inline'>
129
- <p>Outputs the object and also returns it.</p>
130
- </div></span>
131
-
132
- </li>
133
-
134
-
135
- </ul>
136
-
137
-
138
-
139
-
140
- <div id="instance_method_details" class="method_details_list">
141
- <h2>Instance Method Details</h2>
142
-
143
-
144
- <div class="method_details first">
145
- <h3 class="signature first" id="display-instance_method">
146
-
147
- #<strong>display</strong>(new_line = true) &#x21d2; <tt><span class='object_link'><a href="" title="Object (class)">Object</a></span></tt>
148
-
149
-
150
-
151
- <span class="aliases">Also known as:
152
- <span class="names"><span id='d-instance_method'>d</span></span>
153
- </span>
154
-
155
-
156
-
157
- </h3><div class="docstring">
158
- <div class="discussion">
159
-
160
- <p>Outputs the object and also returns it. Will use <code>puts</code> if <code>new_line</code> is <code>true</code> and <code>print</code> otherwise.</p>
161
-
162
-
163
- </div>
164
- </div>
165
- <div class="tags">
166
-
167
- <div class="examples">
168
- <p class="tag_title">Examples:</p>
169
-
170
-
171
- <pre class="example code"><code><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>foo</span><span class='tstring_end'>&quot;</span></span><span class='period'>.</span><span class='id identifier rubyid_display'>display</span>
172
- <span class='id identifier rubyid_foo'>foo</span> <span class='comment'>#=&gt; &quot;foo&quot;
173
- </span>
174
- <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>foo</span><span class='tstring_end'>&quot;</span></span><span class='period'>.</span><span class='id identifier rubyid_display'>display</span><span class='lparen'>(</span><span class='kw'>false</span><span class='rparen'>)</span>
175
- <span class='id identifier rubyid_foo'>foo</span><span class='comment'>#=&gt; &quot;foo&quot;</span></code></pre>
176
-
177
- </div>
178
-
179
-
180
- </div><table class="source_code">
181
- <tr>
182
- <td>
183
- <pre class="lines">
184
-
185
-
186
- 12
187
- 13
188
- 14
189
- 15</pre>
190
- </td>
191
- <td>
192
- <pre class="code"><span class="info file"># File 'lib/shenanigans/object/display.rb', line 12</span>
193
-
194
- <span class='kw'>def</span> <span class='id identifier rubyid_display'>display</span><span class='lparen'>(</span><span class='id identifier rubyid_new_line'>new_line</span> <span class='op'>=</span> <span class='kw'>true</span><span class='rparen'>)</span>
195
- <span class='id identifier rubyid_m'>m</span> <span class='op'>=</span> <span class='id identifier rubyid_new_line'>new_line</span> <span class='op'>?</span> <span class='symbol'>:puts</span> <span class='op'>:</span> <span class='symbol'>:print</span>
196
- <span class='id identifier rubyid_tap'>tap</span> <span class='lbrace'>{</span> <span class='op'>|</span><span class='id identifier rubyid_o'>o</span><span class='op'>|</span> <span class='id identifier rubyid_send'>send</span><span class='lparen'>(</span><span class='id identifier rubyid_m'>m</span><span class='comma'>,</span> <span class='id identifier rubyid_o'>o</span><span class='rparen'>)</span> <span class='rbrace'>}</span>
197
- <span class='kw'>end</span></pre>
198
- </td>
199
- </tr>
200
- </table>
201
- </div>
202
-
203
- </div>
204
-
205
- </div>
206
-
207
- <div id="footer">
208
- Generated on Tue May 5 19:54:28 2020 by
209
- <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
210
- 0.9.24 (ruby-2.7.1).
211
- </div>
212
-
213
- </div>
214
- </body>
215
- </html>