otoroshi 0.0.7 → 0.0.8

Sign up to get free protection for your applications and to get access to all the features.
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: otoroshi
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Edouard Piron
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-10-10 00:00:00.000000000 Z
11
+ date: 2020-10-16 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Help defining class properties
14
14
  email: ed.piron@gmail.com
@@ -16,26 +16,9 @@ executables: []
16
16
  extensions: []
17
17
  extra_rdoc_files: []
18
18
  files:
19
- - lib/doc/Example.html
20
- - lib/doc/Otoroshi.html
21
- - lib/doc/Otoroshi/Sanctuary.html
22
- - lib/doc/Otoroshi/Sanctuary/ClassMethods.html
23
- - lib/doc/_index.html
24
- - lib/doc/class_list.html
25
- - lib/doc/css/common.css
26
- - lib/doc/css/full_list.css
27
- - lib/doc/css/style.css
28
- - lib/doc/file.README.html
29
- - lib/doc/file_list.html
30
- - lib/doc/frames.html
31
- - lib/doc/index.html
32
- - lib/doc/js/app.js
33
- - lib/doc/js/full_list.js
34
- - lib/doc/js/jquery.js
35
- - lib/doc/method_list.html
36
- - lib/doc/top-level-namespace.html
37
19
  - lib/otoroshi.rb
38
20
  - lib/otoroshi/exceptions.rb
21
+ - lib/otoroshi/initializer.rb
39
22
  - lib/otoroshi/sanctuary.rb
40
23
  homepage: https://rubygems.org/gems/otoroshi
41
24
  licenses:
@@ -1,244 +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: Example
8
-
9
- &mdash; Documentation by YARD 0.9.25
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 = "Example";
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 (E)</a> &raquo;
40
-
41
-
42
- <span class="title">Example</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: Example
63
-
64
-
65
-
66
- </h1>
67
- <div class="box_info">
68
-
69
- <dl>
70
- <dt>Inherits:</dt>
71
- <dd>
72
- <span class="inheritName">Object</span>
73
-
74
- <ul class="fullTree">
75
- <li>Object</li>
76
-
77
- <li class="next">Example</li>
78
-
79
- </ul>
80
- <a href="#" class="inheritanceTree">show all</a>
81
-
82
- </dd>
83
- </dl>
84
-
85
-
86
-
87
-
88
- <dl>
89
- <dt>Extended by:</dt>
90
- <dd><span class='object_link'><a href="Otoroshi/Sanctuary/ClassMethods.html" title="Otoroshi::Sanctuary::ClassMethods (module)">Otoroshi::Sanctuary::ClassMethods</a></span></dd>
91
- </dl>
92
-
93
-
94
-
95
- <dl>
96
- <dt>Includes:</dt>
97
- <dd><span class='object_link'><a href="Otoroshi/Sanctuary.html" title="Otoroshi::Sanctuary (module)">Otoroshi::Sanctuary</a></span></dd>
98
- </dl>
99
-
100
-
101
-
102
-
103
-
104
-
105
- <dl>
106
- <dt>Defined in:</dt>
107
- <dd>lib/example.rb</dd>
108
- </dl>
109
-
110
- </div>
111
-
112
- <h2>Overview</h2><div class="docstring">
113
- <div class="discussion">
114
-
115
- <p>Example class</p>
116
-
117
-
118
- </div>
119
- </div>
120
- <div class="tags">
121
-
122
-
123
- </div>
124
-
125
-
126
-
127
-
128
-
129
-
130
-
131
- <h2>
132
- Instance Method Summary
133
- <small><a href="#" class="summary_toggle">collapse</a></small>
134
- </h2>
135
-
136
- <ul class="summary">
137
-
138
- <li class="public ">
139
- <span class="summary_signature">
140
-
141
- <a href="#hello-instance_method" title="#hello (instance method)">#<strong>hello</strong> &#x21d2; void </a>
142
-
143
-
144
-
145
- </span>
146
-
147
-
148
-
149
-
150
-
151
-
152
-
153
-
154
-
155
- <span class="summary_desc"><div class='inline'>
156
- <p>Hello.</p>
157
- </div></span>
158
-
159
- </li>
160
-
161
-
162
- </ul>
163
-
164
-
165
-
166
-
167
-
168
-
169
-
170
-
171
-
172
-
173
-
174
- <h3 class="inherited">Methods included from <span class='object_link'><a href="Otoroshi/Sanctuary/ClassMethods.html" title="Otoroshi::Sanctuary::ClassMethods (module)">Otoroshi::Sanctuary::ClassMethods</a></span></h3>
175
- <p class="inherited"><span class='object_link'><a href="Otoroshi/Sanctuary/ClassMethods.html#add_to_properties-instance_method" title="Otoroshi::Sanctuary::ClassMethods#add_to_properties (method)">add_to_properties</a></span>, <span class='object_link'><a href="Otoroshi/Sanctuary/ClassMethods.html#default_parameter_for-instance_method" title="Otoroshi::Sanctuary::ClassMethods#default_parameter_for (method)">default_parameter_for</a></span>, <span class='object_link'><a href="Otoroshi/Sanctuary/ClassMethods.html#define_getter-instance_method" title="Otoroshi::Sanctuary::ClassMethods#define_getter (method)">define_getter</a></span>, <span class='object_link'><a href="Otoroshi/Sanctuary/ClassMethods.html#define_setter-instance_method" title="Otoroshi::Sanctuary::ClassMethods#define_setter (method)">define_setter</a></span>, <span class='object_link'><a href="Otoroshi/Sanctuary/ClassMethods.html#define_validate_lambda!-instance_method" title="Otoroshi::Sanctuary::ClassMethods#define_validate_lambda! (method)">define_validate_lambda!</a></span>, <span class='object_link'><a href="Otoroshi/Sanctuary/ClassMethods.html#define_validate_type!-instance_method" title="Otoroshi::Sanctuary::ClassMethods#define_validate_type! (method)">define_validate_type!</a></span>, <span class='object_link'><a href="Otoroshi/Sanctuary/ClassMethods.html#initialize_body-instance_method" title="Otoroshi::Sanctuary::ClassMethods#initialize_body (method)">initialize_body</a></span>, <span class='object_link'><a href="Otoroshi/Sanctuary/ClassMethods.html#initialize_parameters-instance_method" title="Otoroshi::Sanctuary::ClassMethods#initialize_parameters (method)">initialize_parameters</a></span>, <span class='object_link'><a href="Otoroshi/Sanctuary/ClassMethods.html#properties-instance_method" title="Otoroshi::Sanctuary::ClassMethods#properties (method)">properties</a></span>, <span class='object_link'><a href="Otoroshi/Sanctuary/ClassMethods.html#property-instance_method" title="Otoroshi::Sanctuary::ClassMethods#property (method)">property</a></span>, <span class='object_link'><a href="Otoroshi/Sanctuary/ClassMethods.html#redefine_initialize-instance_method" title="Otoroshi::Sanctuary::ClassMethods#redefine_initialize (method)">redefine_initialize</a></span>, <span class='object_link'><a href="Otoroshi/Sanctuary/ClassMethods.html#type_validation-instance_method" title="Otoroshi::Sanctuary::ClassMethods#type_validation (method)">type_validation</a></span></p>
176
-
177
-
178
-
179
-
180
-
181
-
182
-
183
-
184
-
185
- <h3 class="inherited">Methods included from <span class='object_link'><a href="Otoroshi/Sanctuary.html" title="Otoroshi::Sanctuary (module)">Otoroshi::Sanctuary</a></span></h3>
186
- <p class="inherited"><span class='object_link'><a href="Otoroshi/Sanctuary.html#included-class_method" title="Otoroshi::Sanctuary.included (method)">included</a></span></p>
187
-
188
-
189
- <div id="instance_method_details" class="method_details_list">
190
- <h2>Instance Method Details</h2>
191
-
192
-
193
- <div class="method_details first">
194
- <h3 class="signature first" id="hello-instance_method">
195
-
196
- #<strong>hello</strong> &#x21d2; <tt>void</tt>
197
-
198
-
199
-
200
-
201
-
202
- </h3><div class="docstring">
203
- <div class="discussion">
204
- <p class="note returns_void">This method returns an undefined value.</p>
205
- <p>Hello</p>
206
-
207
-
208
- </div>
209
- </div>
210
- <div class="tags">
211
-
212
-
213
- </div><table class="source_code">
214
- <tr>
215
- <td>
216
- <pre class="lines">
217
-
218
-
219
- 9
220
- 10</pre>
221
- </td>
222
- <td>
223
- <pre class="code"><span class="info file"># File 'lib/example.rb', line 9</span>
224
-
225
- <span class='kw'>def</span> <span class='id identifier rubyid_hello'>hello</span>
226
- <span class='kw'>end</span></pre>
227
- </td>
228
- </tr>
229
- </table>
230
- </div>
231
-
232
- </div>
233
-
234
- </div>
235
-
236
- <div id="footer">
237
- Generated on Tue Oct 13 23:34:43 2020 by
238
- <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
239
- 0.9.25 (ruby-2.6.6).
240
- </div>
241
-
242
- </div>
243
- </body>
244
- </html>
@@ -1,115 +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
- Module: Otoroshi
8
-
9
- &mdash; Documentation by YARD 0.9.25
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 = "Otoroshi";
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">Otoroshi</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: Otoroshi
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/otoroshi/sanctuary.rb</dd>
82
- </dl>
83
-
84
- </div>
85
-
86
- <h2>Defined Under Namespace</h2>
87
- <p class="children">
88
-
89
-
90
- <strong class="modules">Modules:</strong> <span class='object_link'><a href="Otoroshi/Sanctuary.html" title="Otoroshi::Sanctuary (module)">Sanctuary</a></span>
91
-
92
-
93
-
94
-
95
- </p>
96
-
97
-
98
-
99
-
100
-
101
-
102
-
103
-
104
-
105
- </div>
106
-
107
- <div id="footer">
108
- Generated on Wed Oct 14 00:24:01 2020 by
109
- <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
110
- 0.9.25 (ruby-2.6.6).
111
- </div>
112
-
113
- </div>
114
- </body>
115
- </html>
@@ -1,223 +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
- Module: Otoroshi::Sanctuary
8
-
9
- &mdash; Documentation by YARD 0.9.25
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 = "Otoroshi::Sanctuary";
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 (S)</a> &raquo;
40
- <span class='title'><span class='object_link'><a href="../Otoroshi.html" title="Otoroshi (module)">Otoroshi</a></span></span>
41
- &raquo;
42
- <span class="title">Sanctuary</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: Otoroshi::Sanctuary
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/otoroshi/sanctuary.rb</dd>
82
- </dl>
83
-
84
- </div>
85
-
86
- <h2>Overview</h2><div class="docstring">
87
- <div class="discussion">
88
-
89
- <p>This module is designed to be included in a class. This will provide the “property” (<span class='object_link'><a href="Sanctuary/ClassMethods.html#property-instance_method" title="Otoroshi::Sanctuary::ClassMethods#property (method)">ClassMethods#property</a></span>) method for defining class properties.</p>
90
-
91
-
92
- </div>
93
- </div>
94
- <div class="tags">
95
-
96
- <div class="examples">
97
- <p class="tag_title">Examples:</p>
98
-
99
-
100
- <pre class="example code"><code><span class='kw'>class</span> <span class='const'>Importer</span>
101
- <span class='id identifier rubyid_include'>include</span> <span class='const'><span class='object_link'><a href="../Otoroshi.html" title="Otoroshi (module)">Otoroshi</a></span></span><span class='op'>::</span><span class='const'>Sanctuary</span>
102
-
103
- <span class='id identifier rubyid_property'>property</span> <span class='symbol'>:file_path</span><span class='comma'>,</span> <span class='const'>String</span><span class='comma'>,</span> <span class='label'>validate:</span> <span class='tlambda'>-&gt;</span><span class='lparen'>(</span><span class='id identifier rubyid_v'>v</span><span class='rparen'>)</span> <span class='tlambeg'>{</span> <span class='id identifier rubyid_v'>v</span><span class='period'>.</span><span class='id identifier rubyid_match?'>match?</span> <span class='tstring'><span class='regexp_beg'>/</span><span class='tstring_content'>.+\.csv</span><span class='regexp_end'>/</span></span> <span class='rbrace'>}</span>
104
- <span class='id identifier rubyid_property'>property</span> <span class='symbol'>:headers</span><span class='comma'>,</span> <span class='lbracket'>[</span><span class='const'>TrueClass</span><span class='comma'>,</span> <span class='const'>FalseClass</span><span class='rbracket'>]</span><span class='comma'>,</span> <span class='label'>default:</span> <span class='kw'>false</span>
105
- <span class='id identifier rubyid_property'>property</span> <span class='symbol'>:col_sep</span><span class='comma'>,</span> <span class='const'>String</span><span class='comma'>,</span> <span class='label'>validate:</span> <span class='tlambda'>-&gt;</span><span class='lparen'>(</span><span class='id identifier rubyid_v'>v</span><span class='rparen'>)</span> <span class='tlambeg'>{</span> <span class='id identifier rubyid_v'>v</span><span class='period'>.</span><span class='id identifier rubyid_in?'>in?</span> <span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>,</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>;</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>\s</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>\t</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>|</span><span class='tstring_end'>&#39;</span></span><span class='rbracket'>]</span> <span class='rbrace'>}</span><span class='comma'>,</span> <span class='label'>default:</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>,</span><span class='tstring_end'>&#39;</span></span>
106
- <span class='id identifier rubyid_property'>property</span> <span class='symbol'>:converters</span><span class='comma'>,</span> <span class='const'>Symbol</span><span class='comma'>,</span> <span class='label'>validate:</span> <span class='tlambda'>-&gt;</span><span class='lparen'>(</span><span class='id identifier rubyid_v'>v</span><span class='rparen'>)</span> <span class='tlambeg'>{</span> <span class='id identifier rubyid_v'>v</span><span class='period'>.</span><span class='id identifier rubyid_in?'>in?</span> <span class='qsymbols_beg'>%i[</span><span class='tstring_content'>integer</span><span class='words_sep'> </span><span class='tstring_content'>float</span><span class='words_sep'> </span><span class='tstring_content'>date</span><span class='tstring_end'>]</span></span> <span class='rbrace'>}</span><span class='comma'>,</span> <span class='label'>allow_nil:</span> <span class='kw'>true</span>
107
- <span class='kw'>end</span></code></pre>
108
-
109
- </div>
110
-
111
-
112
- </div><h2>Defined Under Namespace</h2>
113
- <p class="children">
114
-
115
-
116
- <strong class="modules">Modules:</strong> <span class='object_link'><a href="Sanctuary/ClassMethods.html" title="Otoroshi::Sanctuary::ClassMethods (module)">ClassMethods</a></span>
117
-
118
-
119
-
120
-
121
- </p>
122
-
123
-
124
-
125
-
126
-
127
-
128
-
129
-
130
- <h2>
131
- Class Method Summary
132
- <small><a href="#" class="summary_toggle">collapse</a></small>
133
- </h2>
134
-
135
- <ul class="summary">
136
-
137
- <li class="public ">
138
- <span class="summary_signature">
139
-
140
- <a href="#included-class_method" title="included (class method)">.<strong>included</strong>(base) &#x21d2; Object </a>
141
-
142
-
143
-
144
- </span>
145
-
146
-
147
-
148
-
149
-
150
-
151
-
152
-
153
-
154
- <span class="summary_desc"><div class='inline'>
155
- <p>Extend ClassMethods for the base class.</p>
156
- </div></span>
157
-
158
- </li>
159
-
160
-
161
- </ul>
162
-
163
-
164
-
165
-
166
- <div id="class_method_details" class="method_details_list">
167
- <h2>Class Method Details</h2>
168
-
169
-
170
- <div class="method_details first">
171
- <h3 class="signature first" id="included-class_method">
172
-
173
- .<strong>included</strong>(base) &#x21d2; <tt>Object</tt>
174
-
175
-
176
-
177
-
178
-
179
- </h3><div class="docstring">
180
- <div class="discussion">
181
-
182
- <p>Extend ClassMethods for the base class</p>
183
-
184
-
185
- </div>
186
- </div>
187
- <div class="tags">
188
-
189
-
190
- </div><table class="source_code">
191
- <tr>
192
- <td>
193
- <pre class="lines">
194
-
195
-
196
- 18
197
- 19
198
- 20</pre>
199
- </td>
200
- <td>
201
- <pre class="code"><span class="info file"># File 'lib/otoroshi/sanctuary.rb', line 18</span>
202
-
203
- <span class='kw'>def</span> <span class='id identifier rubyid_included'>included</span><span class='lparen'>(</span><span class='id identifier rubyid_base'>base</span><span class='rparen'>)</span>
204
- <span class='id identifier rubyid_base'>base</span><span class='period'>.</span><span class='id identifier rubyid_extend'>extend</span> <span class='const'><span class='object_link'><a href="Sanctuary/ClassMethods.html" title="Otoroshi::Sanctuary::ClassMethods (module)">ClassMethods</a></span></span>
205
- <span class='kw'>end</span></pre>
206
- </td>
207
- </tr>
208
- </table>
209
- </div>
210
-
211
- </div>
212
-
213
- </div>
214
-
215
- <div id="footer">
216
- Generated on Wed Oct 14 00:24:01 2020 by
217
- <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
218
- 0.9.25 (ruby-2.6.6).
219
- </div>
220
-
221
- </div>
222
- </body>
223
- </html>