kwalify 0.7.1 → 0.7.2
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGES.txt +12 -3
- data/MIT-LICENSE +1 -1
- data/README.txt +10 -10
- data/bin/kwalify +3 -3
- data/contrib/inline-require +54 -28
- data/contrib/kwalify +45 -44
- data/doc-api/classes/CommandOptionError.html +7 -7
- data/doc-api/classes/CommandOptionParser.html +18 -18
- data/doc-api/classes/Kwalify.html +1 -1
- data/doc-api/classes/Kwalify/AssertionError.html +6 -6
- data/doc-api/classes/Kwalify/BaseParser.html +60 -60
- data/doc-api/classes/Kwalify/CommandOptionError.html +6 -6
- data/doc-api/classes/Kwalify/Main.html +30 -30
- data/doc-api/classes/Kwalify/MetaValidator.html +18 -18
- data/doc-api/classes/Kwalify/Parser.html +6 -6
- data/doc-api/classes/Kwalify/PlainYamlParser.html +90 -90
- data/doc-api/classes/Kwalify/PlainYamlParser/Alias.html +6 -6
- data/doc-api/classes/Kwalify/Rule.html +24 -24
- data/doc-api/classes/Kwalify/SchemaError.html +6 -6
- data/doc-api/classes/Kwalify/SyntaxError.html +12 -12
- data/doc-api/classes/Kwalify/Util.html +8 -7
- data/doc-api/classes/Kwalify/ValidationError.html +6 -6
- data/doc-api/classes/Kwalify/Validator.html +39 -39
- data/doc-api/classes/Kwalify/YamlParser.html +84 -84
- data/doc-api/created.rid +1 -1
- data/doc-api/files/__/README_txt.html +11 -11
- data/doc-api/files/kwalify/errors_rb.html +2 -2
- data/doc-api/files/kwalify/main_rb.html +2 -2
- data/doc-api/files/kwalify/messages_rb.html +2 -2
- data/doc-api/files/kwalify/meta-validator_rb.html +2 -2
- data/doc-api/files/kwalify/parser/base_rb.html +2 -2
- data/doc-api/files/kwalify/parser/yaml_rb.html +2 -2
- data/doc-api/files/kwalify/rule_rb.html +2 -2
- data/doc-api/files/kwalify/types_rb.html +2 -2
- data/doc-api/files/kwalify/util/assert-text-equal_rb.html +2 -2
- data/doc-api/files/kwalify/util/hash-interface_rb.html +2 -2
- data/doc-api/files/kwalify/util/hashlike_rb.html +2 -2
- data/doc-api/files/kwalify/util/option-parser_rb.html +2 -2
- data/doc-api/files/kwalify/util/ordered-hash_rb.html +2 -2
- data/doc-api/files/kwalify/util/testcase-helper_rb.html +2 -2
- data/doc-api/files/kwalify/util_rb.html +2 -2
- data/doc-api/files/kwalify/validator_rb.html +2 -2
- data/doc-api/files/kwalify/yaml-parser_rb.html +2 -2
- data/doc-api/files/kwalify_rb.html +2 -2
- data/doc-api/fr_method_index.html +70 -70
- data/doc/users-guide.html +1 -1
- data/examples/address-book/address-book.schema.yaml +2 -2
- data/examples/invoice/invoice.schema.yaml +3 -3
- data/examples/tapkit/tapkit.schema.yaml +2 -2
- data/lib/kwalify.rb +3 -3
- data/lib/kwalify/errors.rb +3 -3
- data/lib/kwalify/kwalify.schema.yaml +3 -3
- data/lib/kwalify/main.rb +4 -4
- data/lib/kwalify/messages.rb +3 -3
- data/lib/kwalify/meta-validator.rb +3 -3
- data/lib/kwalify/parser/base.rb +3 -3
- data/lib/kwalify/parser/yaml.rb +3 -3
- data/lib/kwalify/rule.rb +3 -3
- data/lib/kwalify/templates/genclass-java.eruby +3 -3
- data/lib/kwalify/templates/genclass-php.eruby +2 -2
- data/lib/kwalify/templates/genclass-ruby.eruby +3 -3
- data/lib/kwalify/types.rb +3 -3
- data/lib/kwalify/util.rb +6 -5
- data/lib/kwalify/util/assert-text-equal.rb +3 -3
- data/lib/kwalify/util/hash-interface.rb +3 -3
- data/lib/kwalify/util/hashlike.rb +3 -3
- data/lib/kwalify/util/option-parser.rb +3 -3
- data/lib/kwalify/util/ordered-hash.rb +2 -2
- data/lib/kwalify/util/testcase-helper.rb +3 -3
- data/lib/kwalify/validator.rb +3 -3
- data/lib/kwalify/yaml-parser.rb +3 -3
- data/test/test-action.rb +3 -3
- data/test/test-action.yaml +3 -3
- data/test/test-databinding.rb +3 -3
- data/test/test-databinding.yaml +2 -2
- data/test/test-main.rb +3 -3
- data/test/test-main.yaml +34 -3
- data/test/test-metavalidator.rb +3 -3
- data/test/test-metavalidator.yaml +3 -3
- data/test/test-parser-yaml.rb +3 -3
- data/test/test-parser-yaml.yaml +3 -3
- data/test/test-rule.rb +3 -3
- data/test/test-rule.yaml +3 -3
- data/test/test-util.rb +125 -0
- data/test/test-validator.rb +3 -3
- data/test/test-validator.yaml +3 -3
- data/test/test-yaml-parser.rb +3 -3
- data/test/test-yaml-parser.yaml +4 -4
- data/test/test.rb +4 -3
- metadata +56 -55
@@ -147,9 +147,9 @@ ex.
|
|
147
147
|
<h3 class="section-bar">Methods</h3>
|
148
148
|
|
149
149
|
<div class="name-list">
|
150
|
-
<a href="#
|
151
|
-
<a href="#
|
152
|
-
<a href="#
|
150
|
+
<a href="#M000001">new</a>
|
151
|
+
<a href="#M000003">parse</a>
|
152
|
+
<a href="#M000002">to_value</a>
|
153
153
|
</div>
|
154
154
|
</div>
|
155
155
|
|
@@ -171,11 +171,11 @@ ex.
|
|
171
171
|
<div id="methods">
|
172
172
|
<h3 class="section-bar">Public Class methods</h3>
|
173
173
|
|
174
|
-
<div id="method-
|
175
|
-
<a name="
|
174
|
+
<div id="method-M000001" class="method-detail">
|
175
|
+
<a name="M000001"></a>
|
176
176
|
|
177
177
|
<div class="method-heading">
|
178
|
-
<a href="#
|
178
|
+
<a href="#M000001" class="method-signature">
|
179
179
|
<span class="method-name">new</span><span class="method-args">(arg_none=nil, arg_required=nil, arg_optional=nil)</span>
|
180
180
|
</a>
|
181
181
|
</div>
|
@@ -187,8 +187,8 @@ which takes argument arg_otpional: option string which may takes argument
|
|
187
187
|
optionally
|
188
188
|
</p>
|
189
189
|
<p><a class="source-toggle" href="#"
|
190
|
-
onclick="toggleCode('
|
191
|
-
<div class="method-source-code" id="
|
190
|
+
onclick="toggleCode('M000001-source');return false;">[Source]</a></p>
|
191
|
+
<div class="method-source-code" id="M000001-source">
|
192
192
|
<pre>
|
193
193
|
<span class="ruby-comment cmt"># File kwalify/util/option-parser.rb, line 92</span>
|
194
194
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">arg_none</span>=<span class="ruby-keyword kw">nil</span>, <span class="ruby-identifier">arg_required</span>=<span class="ruby-keyword kw">nil</span>, <span class="ruby-identifier">arg_optional</span>=<span class="ruby-keyword kw">nil</span>)
|
@@ -201,19 +201,19 @@ optionally
|
|
201
201
|
</div>
|
202
202
|
</div>
|
203
203
|
|
204
|
-
<div id="method-
|
205
|
-
<a name="
|
204
|
+
<div id="method-M000002" class="method-detail">
|
205
|
+
<a name="M000002"></a>
|
206
206
|
|
207
207
|
<div class="method-heading">
|
208
|
-
<a href="#
|
208
|
+
<a href="#M000002" class="method-signature">
|
209
209
|
<span class="method-name">to_value</span><span class="method-args">(str)</span>
|
210
210
|
</a>
|
211
211
|
</div>
|
212
212
|
|
213
213
|
<div class="method-description">
|
214
214
|
<p><a class="source-toggle" href="#"
|
215
|
-
onclick="toggleCode('
|
216
|
-
<div class="method-source-code" id="
|
215
|
+
onclick="toggleCode('M000002-source');return false;">[Source]</a></p>
|
216
|
+
<div class="method-source-code" id="M000002-source">
|
217
217
|
<pre>
|
218
218
|
<span class="ruby-comment cmt"># File kwalify/util/option-parser.rb, line 99</span>
|
219
219
|
<span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">to_value</span>(<span class="ruby-identifier">str</span>)
|
@@ -235,11 +235,11 @@ optionally
|
|
235
235
|
|
236
236
|
<h3 class="section-bar">Public Instance methods</h3>
|
237
237
|
|
238
|
-
<div id="method-
|
239
|
-
<a name="
|
238
|
+
<div id="method-M000003" class="method-detail">
|
239
|
+
<a name="M000003"></a>
|
240
240
|
|
241
241
|
<div class="method-heading">
|
242
|
-
<a href="#
|
242
|
+
<a href="#M000003" class="method-signature">
|
243
243
|
<span class="method-name">parse</span><span class="method-args">(argv, auto_convert=false)</span>
|
244
244
|
</a>
|
245
245
|
</div>
|
@@ -255,8 +255,8 @@ optionally
|
|
255
255
|
</td></tr>
|
256
256
|
</table>
|
257
257
|
<p><a class="source-toggle" href="#"
|
258
|
-
onclick="toggleCode('
|
259
|
-
<div class="method-source-code" id="
|
258
|
+
onclick="toggleCode('M000003-source');return false;">[Source]</a></p>
|
259
|
+
<div class="method-source-code" id="M000003-source">
|
260
260
|
<pre>
|
261
261
|
<span class="ruby-comment cmt"># File kwalify/util/option-parser.rb, line 115</span>
|
262
262
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">parse</span>(<span class="ruby-identifier">argv</span>, <span class="ruby-identifier">auto_convert</span>=<span class="ruby-keyword kw">false</span>)
|
@@ -193,7 +193,7 @@ Class <a href="Kwalify/YamlSyntaxError.html" class="link">Kwalify::YamlSyntaxErr
|
|
193
193
|
<tr class="top-aligned-row context-row">
|
194
194
|
<td class="context-item-name">RELEASE</td>
|
195
195
|
<td>=</td>
|
196
|
-
<td class="context-item-value">("$Release: 0.7.
|
196
|
+
<td class="context-item-value">("$Release: 0.7.2 $" =~ /[.\d]+/) && $&</td>
|
197
197
|
</tr>
|
198
198
|
</table>
|
199
199
|
</div>
|
@@ -88,7 +88,7 @@
|
|
88
88
|
<h3 class="section-bar">Methods</h3>
|
89
89
|
|
90
90
|
<div class="name-list">
|
91
|
-
<a href="#
|
91
|
+
<a href="#M000135">new</a>
|
92
92
|
</div>
|
93
93
|
</div>
|
94
94
|
|
@@ -110,19 +110,19 @@
|
|
110
110
|
<div id="methods">
|
111
111
|
<h3 class="section-bar">Public Class methods</h3>
|
112
112
|
|
113
|
-
<div id="method-
|
114
|
-
<a name="
|
113
|
+
<div id="method-M000135" class="method-detail">
|
114
|
+
<a name="M000135"></a>
|
115
115
|
|
116
116
|
<div class="method-heading">
|
117
|
-
<a href="#
|
117
|
+
<a href="#M000135" class="method-signature">
|
118
118
|
<span class="method-name">new</span><span class="method-args">(msg)</span>
|
119
119
|
</a>
|
120
120
|
</div>
|
121
121
|
|
122
122
|
<div class="method-description">
|
123
123
|
<p><a class="source-toggle" href="#"
|
124
|
-
onclick="toggleCode('
|
125
|
-
<div class="method-source-code" id="
|
124
|
+
onclick="toggleCode('M000135-source');return false;">[Source]</a></p>
|
125
|
+
<div class="method-source-code" id="M000135-source">
|
126
126
|
<pre>
|
127
127
|
<span class="ruby-comment cmt"># File kwalify/errors.rb, line 16</span>
|
128
128
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">msg</span>)
|
@@ -92,16 +92,16 @@ base class for <a href="Yaml/Parser.html">Yaml::Parser</a>
|
|
92
92
|
<h3 class="section-bar">Methods</h3>
|
93
93
|
|
94
94
|
<div class="name-list">
|
95
|
-
<a href="#
|
96
|
-
<a href="#
|
97
|
-
<a href="#
|
98
|
-
<a href="#
|
99
|
-
<a href="#
|
100
|
-
<a href="#
|
101
|
-
<a href="#
|
102
|
-
<a href="#
|
103
|
-
<a href="#
|
104
|
-
<a href="#
|
95
|
+
<a href="#M000092">_getch</a>
|
96
|
+
<a href="#M000087">_set_column_and_linenum</a>
|
97
|
+
<a href="#M000094">_syntax_error</a>
|
98
|
+
<a href="#M000090">eos?</a>
|
99
|
+
<a href="#M000089">group</a>
|
100
|
+
<a href="#M000088">match?</a>
|
101
|
+
<a href="#M000091">peep</a>
|
102
|
+
<a href="#M000085">reset</a>
|
103
|
+
<a href="#M000086">scan</a>
|
104
|
+
<a href="#M000093">scan_string</a>
|
105
105
|
</div>
|
106
106
|
</div>
|
107
107
|
|
@@ -159,19 +159,19 @@ base class for <a href="Yaml/Parser.html">Yaml::Parser</a>
|
|
159
159
|
<div id="methods">
|
160
160
|
<h3 class="section-bar">Public Instance methods</h3>
|
161
161
|
|
162
|
-
<div id="method-
|
163
|
-
<a name="
|
162
|
+
<div id="method-M000092" class="method-detail">
|
163
|
+
<a name="M000092"></a>
|
164
164
|
|
165
165
|
<div class="method-heading">
|
166
|
-
<a href="#
|
166
|
+
<a href="#M000092" class="method-signature">
|
167
167
|
<span class="method-name">_getch</span><span class="method-args">()</span>
|
168
168
|
</a>
|
169
169
|
</div>
|
170
170
|
|
171
171
|
<div class="method-description">
|
172
172
|
<p><a class="source-toggle" href="#"
|
173
|
-
onclick="toggleCode('
|
174
|
-
<div class="method-source-code" id="
|
173
|
+
onclick="toggleCode('M000092-source');return false;">[Source]</a></p>
|
174
|
+
<div class="method-source-code" id="M000092-source">
|
175
175
|
<pre>
|
176
176
|
<span class="ruby-comment cmt"># File kwalify/parser/base.rb, line 67</span>
|
177
177
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">_getch</span>
|
@@ -189,19 +189,19 @@ base class for <a href="Yaml/Parser.html">Yaml::Parser</a>
|
|
189
189
|
</div>
|
190
190
|
</div>
|
191
191
|
|
192
|
-
<div id="method-
|
193
|
-
<a name="
|
192
|
+
<div id="method-M000087" class="method-detail">
|
193
|
+
<a name="M000087"></a>
|
194
194
|
|
195
195
|
<div class="method-heading">
|
196
|
-
<a href="#
|
196
|
+
<a href="#M000087" class="method-signature">
|
197
197
|
<span class="method-name">_set_column_and_linenum</span><span class="method-args">(s)</span>
|
198
198
|
</a>
|
199
199
|
</div>
|
200
200
|
|
201
201
|
<div class="method-description">
|
202
202
|
<p><a class="source-toggle" href="#"
|
203
|
-
onclick="toggleCode('
|
204
|
-
<div class="method-source-code" id="
|
203
|
+
onclick="toggleCode('M000087-source');return false;">[Source]</a></p>
|
204
|
+
<div class="method-source-code" id="M000087-source">
|
205
205
|
<pre>
|
206
206
|
<span class="ruby-comment cmt"># File kwalify/parser/base.rb, line 36</span>
|
207
207
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">_set_column_and_linenum</span>(<span class="ruby-identifier">s</span>)
|
@@ -218,19 +218,19 @@ base class for <a href="Yaml/Parser.html">Yaml::Parser</a>
|
|
218
218
|
</div>
|
219
219
|
</div>
|
220
220
|
|
221
|
-
<div id="method-
|
222
|
-
<a name="
|
221
|
+
<div id="method-M000090" class="method-detail">
|
222
|
+
<a name="M000090"></a>
|
223
223
|
|
224
224
|
<div class="method-heading">
|
225
|
-
<a href="#
|
225
|
+
<a href="#M000090" class="method-signature">
|
226
226
|
<span class="method-name">eos?</span><span class="method-args">()</span>
|
227
227
|
</a>
|
228
228
|
</div>
|
229
229
|
|
230
230
|
<div class="method-description">
|
231
231
|
<p><a class="source-toggle" href="#"
|
232
|
-
onclick="toggleCode('
|
233
|
-
<div class="method-source-code" id="
|
232
|
+
onclick="toggleCode('M000090-source');return false;">[Source]</a></p>
|
233
|
+
<div class="method-source-code" id="M000090-source">
|
234
234
|
<pre>
|
235
235
|
<span class="ruby-comment cmt"># File kwalify/parser/base.rb, line 57</span>
|
236
236
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">eos?</span>
|
@@ -241,19 +241,19 @@ base class for <a href="Yaml/Parser.html">Yaml::Parser</a>
|
|
241
241
|
</div>
|
242
242
|
</div>
|
243
243
|
|
244
|
-
<div id="method-
|
245
|
-
<a name="
|
244
|
+
<div id="method-M000089" class="method-detail">
|
245
|
+
<a name="M000089"></a>
|
246
246
|
|
247
247
|
<div class="method-heading">
|
248
|
-
<a href="#
|
248
|
+
<a href="#M000089" class="method-signature">
|
249
249
|
<span class="method-name">group</span><span class="method-args">(n)</span>
|
250
250
|
</a>
|
251
251
|
</div>
|
252
252
|
|
253
253
|
<div class="method-description">
|
254
254
|
<p><a class="source-toggle" href="#"
|
255
|
-
onclick="toggleCode('
|
256
|
-
<div class="method-source-code" id="
|
255
|
+
onclick="toggleCode('M000089-source');return false;">[Source]</a></p>
|
256
|
+
<div class="method-source-code" id="M000089-source">
|
257
257
|
<pre>
|
258
258
|
<span class="ruby-comment cmt"># File kwalify/parser/base.rb, line 52</span>
|
259
259
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">group</span>(<span class="ruby-identifier">n</span>)
|
@@ -264,19 +264,19 @@ base class for <a href="Yaml/Parser.html">Yaml::Parser</a>
|
|
264
264
|
</div>
|
265
265
|
</div>
|
266
266
|
|
267
|
-
<div id="method-
|
268
|
-
<a name="
|
267
|
+
<div id="method-M000088" class="method-detail">
|
268
|
+
<a name="M000088"></a>
|
269
269
|
|
270
270
|
<div class="method-heading">
|
271
|
-
<a href="#
|
271
|
+
<a href="#M000088" class="method-signature">
|
272
272
|
<span class="method-name">match?</span><span class="method-args">(regexp)</span>
|
273
273
|
</a>
|
274
274
|
</div>
|
275
275
|
|
276
276
|
<div class="method-description">
|
277
277
|
<p><a class="source-toggle" href="#"
|
278
|
-
onclick="toggleCode('
|
279
|
-
<div class="method-source-code" id="
|
278
|
+
onclick="toggleCode('M000088-source');return false;">[Source]</a></p>
|
279
|
+
<div class="method-source-code" id="M000088-source">
|
280
280
|
<pre>
|
281
281
|
<span class="ruby-comment cmt"># File kwalify/parser/base.rb, line 47</span>
|
282
282
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">match?</span>(<span class="ruby-identifier">regexp</span>)
|
@@ -287,19 +287,19 @@ base class for <a href="Yaml/Parser.html">Yaml::Parser</a>
|
|
287
287
|
</div>
|
288
288
|
</div>
|
289
289
|
|
290
|
-
<div id="method-
|
291
|
-
<a name="
|
290
|
+
<div id="method-M000091" class="method-detail">
|
291
|
+
<a name="M000091"></a>
|
292
292
|
|
293
293
|
<div class="method-heading">
|
294
|
-
<a href="#
|
294
|
+
<a href="#M000091" class="method-signature">
|
295
295
|
<span class="method-name">peep</span><span class="method-args">(n=1)</span>
|
296
296
|
</a>
|
297
297
|
</div>
|
298
298
|
|
299
299
|
<div class="method-description">
|
300
300
|
<p><a class="source-toggle" href="#"
|
301
|
-
onclick="toggleCode('
|
302
|
-
<div class="method-source-code" id="
|
301
|
+
onclick="toggleCode('M000091-source');return false;">[Source]</a></p>
|
302
|
+
<div class="method-source-code" id="M000091-source">
|
303
303
|
<pre>
|
304
304
|
<span class="ruby-comment cmt"># File kwalify/parser/base.rb, line 62</span>
|
305
305
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">peep</span>(<span class="ruby-identifier">n</span>=<span class="ruby-value">1</span>)
|
@@ -310,19 +310,19 @@ base class for <a href="Yaml/Parser.html">Yaml::Parser</a>
|
|
310
310
|
</div>
|
311
311
|
</div>
|
312
312
|
|
313
|
-
<div id="method-
|
314
|
-
<a name="
|
313
|
+
<div id="method-M000085" class="method-detail">
|
314
|
+
<a name="M000085"></a>
|
315
315
|
|
316
316
|
<div class="method-heading">
|
317
|
-
<a href="#
|
317
|
+
<a href="#M000085" class="method-signature">
|
318
318
|
<span class="method-name">reset</span><span class="method-args">(input, filename=nil, untabify=false)</span>
|
319
319
|
</a>
|
320
320
|
</div>
|
321
321
|
|
322
322
|
<div class="method-description">
|
323
323
|
<p><a class="source-toggle" href="#"
|
324
|
-
onclick="toggleCode('
|
325
|
-
<div class="method-source-code" id="
|
324
|
+
onclick="toggleCode('M000085-source');return false;">[Source]</a></p>
|
325
|
+
<div class="method-source-code" id="M000085-source">
|
326
326
|
<pre>
|
327
327
|
<span class="ruby-comment cmt"># File kwalify/parser/base.rb, line 18</span>
|
328
328
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">reset</span>(<span class="ruby-identifier">input</span>, <span class="ruby-identifier">filename</span>=<span class="ruby-keyword kw">nil</span>, <span class="ruby-identifier">untabify</span>=<span class="ruby-keyword kw">false</span>)
|
@@ -337,19 +337,19 @@ base class for <a href="Yaml/Parser.html">Yaml::Parser</a>
|
|
337
337
|
</div>
|
338
338
|
</div>
|
339
339
|
|
340
|
-
<div id="method-
|
341
|
-
<a name="
|
340
|
+
<div id="method-M000086" class="method-detail">
|
341
|
+
<a name="M000086"></a>
|
342
342
|
|
343
343
|
<div class="method-heading">
|
344
|
-
<a href="#
|
344
|
+
<a href="#M000086" class="method-signature">
|
345
345
|
<span class="method-name">scan</span><span class="method-args">(regexp)</span>
|
346
346
|
</a>
|
347
347
|
</div>
|
348
348
|
|
349
349
|
<div class="method-description">
|
350
350
|
<p><a class="source-toggle" href="#"
|
351
|
-
onclick="toggleCode('
|
352
|
-
<div class="method-source-code" id="
|
351
|
+
onclick="toggleCode('M000086-source');return false;">[Source]</a></p>
|
352
|
+
<div class="method-source-code" id="M000086-source">
|
353
353
|
<pre>
|
354
354
|
<span class="ruby-comment cmt"># File kwalify/parser/base.rb, line 28</span>
|
355
355
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">scan</span>(<span class="ruby-identifier">regexp</span>)
|
@@ -363,19 +363,19 @@ base class for <a href="Yaml/Parser.html">Yaml::Parser</a>
|
|
363
363
|
</div>
|
364
364
|
</div>
|
365
365
|
|
366
|
-
<div id="method-
|
367
|
-
<a name="
|
366
|
+
<div id="method-M000093" class="method-detail">
|
367
|
+
<a name="M000093"></a>
|
368
368
|
|
369
369
|
<div class="method-heading">
|
370
|
-
<a href="#
|
370
|
+
<a href="#M000093" class="method-signature">
|
371
371
|
<span class="method-name">scan_string</span><span class="method-args">()</span>
|
372
372
|
</a>
|
373
373
|
</div>
|
374
374
|
|
375
375
|
<div class="method-description">
|
376
376
|
<p><a class="source-toggle" href="#"
|
377
|
-
onclick="toggleCode('
|
378
|
-
<div class="method-source-code" id="
|
377
|
+
onclick="toggleCode('M000093-source');return false;">[Source]</a></p>
|
378
|
+
<div class="method-source-code" id="M000093-source">
|
379
379
|
<pre>
|
380
380
|
<span class="ruby-comment cmt"># File kwalify/parser/base.rb, line 81</span>
|
381
381
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">scan_string</span>
|
@@ -422,19 +422,19 @@ base class for <a href="Yaml/Parser.html">Yaml::Parser</a>
|
|
422
422
|
|
423
423
|
<h3 class="section-bar">Protected Instance methods</h3>
|
424
424
|
|
425
|
-
<div id="method-
|
426
|
-
<a name="
|
425
|
+
<div id="method-M000094" class="method-detail">
|
426
|
+
<a name="M000094"></a>
|
427
427
|
|
428
428
|
<div class="method-heading">
|
429
|
-
<a href="#
|
429
|
+
<a href="#M000094" class="method-signature">
|
430
430
|
<span class="method-name">_syntax_error</span><span class="method-args">(message, path=nil, linenum=@linenum, column=@column)</span>
|
431
431
|
</a>
|
432
432
|
</div>
|
433
433
|
|
434
434
|
<div class="method-description">
|
435
435
|
<p><a class="source-toggle" href="#"
|
436
|
-
onclick="toggleCode('
|
437
|
-
<div class="method-source-code" id="
|
436
|
+
onclick="toggleCode('M000094-source');return false;">[Source]</a></p>
|
437
|
+
<div class="method-source-code" id="M000094-source">
|
438
438
|
<pre>
|
439
439
|
<span class="ruby-comment cmt"># File kwalify/parser/base.rb, line 120</span>
|
440
440
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">_syntax_error</span>(<span class="ruby-identifier">message</span>, <span class="ruby-identifier">path</span>=<span class="ruby-keyword kw">nil</span>, <span class="ruby-identifier">linenum</span>=<span class="ruby-ivar">@linenum</span>, <span class="ruby-identifier">column</span>=<span class="ruby-ivar">@column</span>)
|
@@ -88,7 +88,7 @@
|
|
88
88
|
<h3 class="section-bar">Methods</h3>
|
89
89
|
|
90
90
|
<div class="name-list">
|
91
|
-
<a href="#
|
91
|
+
<a href="#M000142">new</a>
|
92
92
|
</div>
|
93
93
|
</div>
|
94
94
|
|
@@ -128,19 +128,19 @@
|
|
128
128
|
<div id="methods">
|
129
129
|
<h3 class="section-bar">Public Class methods</h3>
|
130
130
|
|
131
|
-
<div id="method-
|
132
|
-
<a name="
|
131
|
+
<div id="method-M000142" class="method-detail">
|
132
|
+
<a name="M000142"></a>
|
133
133
|
|
134
134
|
<div class="method-heading">
|
135
|
-
<a href="#
|
135
|
+
<a href="#M000142" class="method-signature">
|
136
136
|
<span class="method-name">new</span><span class="method-args">(message, option, error_symbol)</span>
|
137
137
|
</a>
|
138
138
|
</div>
|
139
139
|
|
140
140
|
<div class="method-description">
|
141
141
|
<p><a class="source-toggle" href="#"
|
142
|
-
onclick="toggleCode('
|
143
|
-
<div class="method-source-code" id="
|
142
|
+
onclick="toggleCode('M000142-source');return false;">[Source]</a></p>
|
143
|
+
<div class="method-source-code" id="M000142-source">
|
144
144
|
<pre>
|
145
145
|
<span class="ruby-comment cmt"># File kwalify/main.rb, line 18</span>
|
146
146
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">message</span>, <span class="ruby-identifier">option</span>, <span class="ruby-identifier">error_symbol</span>)
|
@@ -106,11 +106,11 @@ ex.
|
|
106
106
|
<h3 class="section-bar">Methods</h3>
|
107
107
|
|
108
108
|
<div class="name-list">
|
109
|
-
<a href="#
|
110
|
-
<a href="#
|
111
|
-
<a href="#
|
112
|
-
<a href="#
|
113
|
-
<a href="#
|
109
|
+
<a href="#M000078">_inspect</a>
|
110
|
+
<a href="#M000077">debug?</a>
|
111
|
+
<a href="#M000079">execute</a>
|
112
|
+
<a href="#M000080">main</a>
|
113
|
+
<a href="#M000076">new</a>
|
114
114
|
</div>
|
115
115
|
</div>
|
116
116
|
|
@@ -132,19 +132,19 @@ ex.
|
|
132
132
|
<div id="methods">
|
133
133
|
<h3 class="section-bar">Public Class methods</h3>
|
134
134
|
|
135
|
-
<div id="method-
|
136
|
-
<a name="
|
135
|
+
<div id="method-M000080" class="method-detail">
|
136
|
+
<a name="M000080"></a>
|
137
137
|
|
138
138
|
<div class="method-heading">
|
139
|
-
<a href="#
|
139
|
+
<a href="#M000080" class="method-signature">
|
140
140
|
<span class="method-name">main</span><span class="method-args">(command, argv=ARGV)</span>
|
141
141
|
</a>
|
142
142
|
</div>
|
143
143
|
|
144
144
|
<div class="method-description">
|
145
145
|
<p><a class="source-toggle" href="#"
|
146
|
-
onclick="toggleCode('
|
147
|
-
<div class="method-source-code" id="
|
146
|
+
onclick="toggleCode('M000080-source');return false;">[Source]</a></p>
|
147
|
+
<div class="method-source-code" id="M000080-source">
|
148
148
|
<pre>
|
149
149
|
<span class="ruby-comment cmt"># File kwalify/main.rb, line 121</span>
|
150
150
|
<span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">main</span>(<span class="ruby-identifier">command</span>, <span class="ruby-identifier">argv</span>=<span class="ruby-constant">ARGV</span>)
|
@@ -174,19 +174,19 @@ ex.
|
|
174
174
|
</div>
|
175
175
|
</div>
|
176
176
|
|
177
|
-
<div id="method-
|
178
|
-
<a name="
|
177
|
+
<div id="method-M000076" class="method-detail">
|
178
|
+
<a name="M000076"></a>
|
179
179
|
|
180
180
|
<div class="method-heading">
|
181
|
-
<a href="#
|
181
|
+
<a href="#M000076" class="method-signature">
|
182
182
|
<span class="method-name">new</span><span class="method-args">(command=nil)</span>
|
183
183
|
</a>
|
184
184
|
</div>
|
185
185
|
|
186
186
|
<div class="method-description">
|
187
187
|
<p><a class="source-toggle" href="#"
|
188
|
-
onclick="toggleCode('
|
189
|
-
<div class="method-source-code" id="
|
188
|
+
onclick="toggleCode('M000076-source');return false;">[Source]</a></p>
|
189
|
+
<div class="method-source-code" id="M000076-source">
|
190
190
|
<pre>
|
191
191
|
<span class="ruby-comment cmt"># File kwalify/main.rb, line 45</span>
|
192
192
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">command</span>=<span class="ruby-keyword kw">nil</span>)
|
@@ -206,19 +206,19 @@ ex.
|
|
206
206
|
|
207
207
|
<h3 class="section-bar">Public Instance methods</h3>
|
208
208
|
|
209
|
-
<div id="method-
|
210
|
-
<a name="
|
209
|
+
<div id="method-M000078" class="method-detail">
|
210
|
+
<a name="M000078"></a>
|
211
211
|
|
212
212
|
<div class="method-heading">
|
213
|
-
<a href="#
|
213
|
+
<a href="#M000078" class="method-signature">
|
214
214
|
<span class="method-name">_inspect</span><span class="method-args">()</span>
|
215
215
|
</a>
|
216
216
|
</div>
|
217
217
|
|
218
218
|
<div class="method-description">
|
219
219
|
<p><a class="source-toggle" href="#"
|
220
|
-
onclick="toggleCode('
|
221
|
-
<div class="method-source-code" id="
|
220
|
+
onclick="toggleCode('M000078-source');return false;">[Source]</a></p>
|
221
|
+
<div class="method-source-code" id="M000078-source">
|
222
222
|
<pre>
|
223
223
|
<span class="ruby-comment cmt"># File kwalify/main.rb, line 62</span>
|
224
224
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">_inspect</span>()
|
@@ -243,19 +243,19 @@ ex.
|
|
243
243
|
</div>
|
244
244
|
</div>
|
245
245
|
|
246
|
-
<div id="method-
|
247
|
-
<a name="
|
246
|
+
<div id="method-M000077" class="method-detail">
|
247
|
+
<a name="M000077"></a>
|
248
248
|
|
249
249
|
<div class="method-heading">
|
250
|
-
<a href="#
|
250
|
+
<a href="#M000077" class="method-signature">
|
251
251
|
<span class="method-name">debug?</span><span class="method-args">()</span>
|
252
252
|
</a>
|
253
253
|
</div>
|
254
254
|
|
255
255
|
<div class="method-description">
|
256
256
|
<p><a class="source-toggle" href="#"
|
257
|
-
onclick="toggleCode('
|
258
|
-
<div class="method-source-code" id="
|
257
|
+
onclick="toggleCode('M000077-source');return false;">[Source]</a></p>
|
258
|
+
<div class="method-source-code" id="M000077-source">
|
259
259
|
<pre>
|
260
260
|
<span class="ruby-comment cmt"># File kwalify/main.rb, line 57</span>
|
261
261
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">debug?</span>
|
@@ -266,19 +266,19 @@ ex.
|
|
266
266
|
</div>
|
267
267
|
</div>
|
268
268
|
|
269
|
-
<div id="method-
|
270
|
-
<a name="
|
269
|
+
<div id="method-M000079" class="method-detail">
|
270
|
+
<a name="M000079"></a>
|
271
271
|
|
272
272
|
<div class="method-heading">
|
273
|
-
<a href="#
|
273
|
+
<a href="#M000079" class="method-signature">
|
274
274
|
<span class="method-name">execute</span><span class="method-args">(argv=ARGV)</span>
|
275
275
|
</a>
|
276
276
|
</div>
|
277
277
|
|
278
278
|
<div class="method-description">
|
279
279
|
<p><a class="source-toggle" href="#"
|
280
|
-
onclick="toggleCode('
|
281
|
-
<div class="method-source-code" id="
|
280
|
+
onclick="toggleCode('M000079-source');return false;">[Source]</a></p>
|
281
|
+
<div class="method-source-code" id="M000079-source">
|
282
282
|
<pre>
|
283
283
|
<span class="ruby-comment cmt"># File kwalify/main.rb, line 81</span>
|
284
284
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">execute</span>(<span class="ruby-identifier">argv</span>=<span class="ruby-constant">ARGV</span>)
|