bovem 4.0.1 → 4.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +1 -1
- data/.travis-gemfile +1 -1
- data/.travis.yml +1 -4
- data/.yardopts +1 -1
- data/CHANGELOG.md +7 -0
- data/Gemfile +1 -1
- data/LICENSE.md +21 -0
- data/README.md +21 -16
- data/Rakefile +1 -1
- data/bovem.gemspec +1 -1
- data/docs/Bovem.html +184 -0
- data/{doc → docs}/Bovem/Application.html +139 -140
- data/{doc → docs}/Bovem/Command.html +171 -169
- data/{doc → docs}/Bovem/CommandMethods.html +38 -38
- data/{doc → docs}/Bovem/CommandMethods/Children.html +69 -68
- data/{doc → docs}/Bovem/CommandMethods/Help.html +45 -44
- data/{doc → docs}/Bovem/Configuration.html +58 -57
- data/{doc → docs}/Bovem/Console.html +87 -88
- data/{doc → docs}/Bovem/ConsoleMethods.html +38 -38
- data/{doc → docs}/Bovem/ConsoleMethods/Interactions.html +52 -50
- data/{doc → docs}/Bovem/ConsoleMethods/Interactions/ClassMethods.html +41 -41
- data/{doc → docs}/Bovem/ConsoleMethods/Logging.html +81 -81
- data/{doc → docs}/Bovem/ConsoleMethods/Logging/ClassMethods.html +41 -41
- data/{doc → docs}/Bovem/ConsoleMethods/Output.html +59 -58
- data/{doc → docs}/Bovem/ConsoleMethods/StyleHandling.html +52 -50
- data/{doc → docs}/Bovem/ConsoleMethods/StyleHandling/ClassMethods.html +51 -51
- data/{doc → docs}/Bovem/Errors.html +38 -38
- data/{doc → docs}/Bovem/Errors/Error.html +57 -56
- data/{doc → docs}/Bovem/Errors/InvalidConfiguration.html +44 -43
- data/{doc → docs}/Bovem/Errors/InvalidLogger.html +44 -43
- data/{doc → docs}/Bovem/I18n.html +45 -44
- data/{doc → docs}/Bovem/Logger.html +79 -80
- data/{doc → docs}/Bovem/Option.html +138 -137
- data/{doc → docs}/Bovem/Parser.html +52 -50
- data/{doc → docs}/Bovem/ParserMethods.html +38 -38
- data/{doc → docs}/Bovem/ParserMethods/General.html +47 -45
- data/{doc → docs}/Bovem/ParserMethods/General/ClassMethods.html +47 -47
- data/docs/Bovem/Shell.html +625 -0
- data/{doc → docs}/Bovem/ShellMethods.html +38 -38
- data/{doc → docs}/Bovem/ShellMethods/Directories.html +47 -46
- data/{doc → docs}/Bovem/ShellMethods/Execute.html +47 -46
- data/docs/Bovem/ShellMethods/General.html +120 -0
- data/{doc → docs}/Bovem/ShellMethods/Read.html +47 -46
- data/{doc → docs}/Bovem/ShellMethods/Write.html +47 -46
- data/docs/Bovem/Version.html +187 -0
- data/{doc → docs}/_index.html +32 -35
- data/docs/class_list.html +51 -0
- data/{doc → docs}/css/common.css +0 -0
- data/{doc → docs}/css/full_list.css +32 -31
- data/{doc → docs}/css/style.css +244 -91
- data/{doc → docs}/file.README.html +34 -35
- data/docs/file_list.html +56 -0
- data/docs/frames.html +17 -0
- data/{doc → docs}/index.html +34 -35
- data/{doc → docs}/js/app.js +101 -77
- data/docs/js/full_list.js +216 -0
- data/{doc → docs}/js/jquery.js +0 -0
- data/docs/method_list.html +1115 -0
- data/docs/top-level-namespace.html +110 -0
- data/lib/bovem.rb +1 -1
- data/lib/bovem/application.rb +1 -1
- data/lib/bovem/command.rb +1 -1
- data/lib/bovem/configuration.rb +1 -1
- data/lib/bovem/console.rb +1 -1
- data/lib/bovem/errors.rb +1 -1
- data/lib/bovem/i18n.rb +1 -1
- data/lib/bovem/logger.rb +1 -1
- data/lib/bovem/option.rb +1 -1
- data/lib/bovem/parser.rb +1 -1
- data/lib/bovem/shell.rb +1 -1
- data/lib/bovem/version.rb +2 -2
- data/locales/en.yml +1 -1
- data/locales/it.yml +1 -1
- data/spec/bovem/application_spec.rb +1 -1
- data/spec/bovem/command_spec.rb +1 -1
- data/spec/bovem/configuration_spec.rb +1 -1
- data/spec/bovem/console_spec.rb +1 -1
- data/spec/bovem/errors_spec.rb +1 -1
- data/spec/bovem/i18n_spec.rb +1 -1
- data/spec/bovem/logger_spec.rb +1 -1
- data/spec/bovem/option_spec.rb +1 -1
- data/spec/bovem/parser_spec.rb +1 -1
- data/spec/bovem/shell_spec.rb +1 -1
- data/spec/spec_helper.rb +1 -1
- metadata +53 -52
- data/doc/Bovem.html +0 -186
- data/doc/Bovem/Shell.html +0 -623
- data/doc/Bovem/ShellMethods/General.html +0 -119
- data/doc/Bovem/Version.html +0 -189
- data/doc/class_list.html +0 -58
- data/doc/file_list.html +0 -60
- data/doc/frames.html +0 -26
- data/doc/js/full_list.js +0 -181
- data/doc/method_list.html +0 -855
- data/doc/top-level-namespace.html +0 -112
@@ -1,12 +1,12 @@
|
|
1
|
-
<!DOCTYPE html
|
2
|
-
|
3
|
-
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
4
3
|
<head>
|
5
|
-
<meta
|
4
|
+
<meta charset="utf-8">
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
6
6
|
<title>
|
7
7
|
Class: Bovem::Logger
|
8
8
|
|
9
|
-
— Documentation by YARD 0.
|
9
|
+
— Documentation by YARD 0.9.7
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
@@ -15,9 +15,8 @@
|
|
15
15
|
<link rel="stylesheet" href="../css/common.css" type="text/css" charset="utf-8" />
|
16
16
|
|
17
17
|
<script type="text/javascript" charset="utf-8">
|
18
|
-
|
18
|
+
pathId = "Bovem::Logger";
|
19
19
|
relpath = '../';
|
20
|
-
framesUrl = "../frames.html#!Bovem/Logger.html";
|
21
20
|
</script>
|
22
21
|
|
23
22
|
|
@@ -28,51 +27,48 @@
|
|
28
27
|
|
29
28
|
</head>
|
30
29
|
<body>
|
31
|
-
<div
|
32
|
-
<
|
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">
|
33
38
|
|
34
39
|
<a href="../_index.html">Index (L)</a> »
|
35
40
|
<span class='title'><span class='object_link'><a href="../Bovem.html" title="Bovem (module)">Bovem</a></span></span>
|
36
41
|
»
|
37
42
|
<span class="title">Logger</span>
|
38
43
|
|
39
|
-
|
40
|
-
<div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
|
41
44
|
</div>
|
42
45
|
|
43
|
-
|
46
|
+
<div id="search">
|
44
47
|
|
45
48
|
<a class="full_list_link" id="class_list_link"
|
46
49
|
href="../class_list.html">
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
</a>
|
54
|
-
|
55
|
-
<a class="full_list_link" id="file_list_link"
|
56
|
-
href="../file_list.html">
|
57
|
-
File List
|
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>
|
58
56
|
</a>
|
59
57
|
|
60
58
|
</div>
|
61
|
-
|
62
|
-
|
59
|
+
<div class="clear"></div>
|
60
|
+
</div>
|
63
61
|
|
64
|
-
|
65
|
-
|
66
|
-
<div id="content"><h1>Class: Bovem::Logger
|
62
|
+
<div id="content"><h1>Class: Bovem::Logger
|
67
63
|
|
68
64
|
|
69
65
|
|
70
66
|
</h1>
|
71
|
-
|
72
|
-
<dl class="box">
|
67
|
+
<div class="box_info">
|
73
68
|
|
74
|
-
|
75
|
-
<
|
69
|
+
<dl>
|
70
|
+
<dt>Inherits:</dt>
|
71
|
+
<dd>
|
76
72
|
<span class="inheritName">Logger</span>
|
77
73
|
|
78
74
|
<ul class="fullTree">
|
@@ -85,21 +81,25 @@
|
|
85
81
|
</ul>
|
86
82
|
<a href="#" class="inheritanceTree">show all</a>
|
87
83
|
|
88
|
-
|
89
|
-
|
84
|
+
</dd>
|
85
|
+
</dl>
|
90
86
|
|
87
|
+
|
91
88
|
|
92
|
-
|
93
89
|
|
94
|
-
|
95
90
|
|
96
91
|
|
97
92
|
|
98
|
-
|
99
|
-
<dd class="r2 last">lib/bovem/logger.rb</dd>
|
93
|
+
|
100
94
|
|
101
|
-
|
102
|
-
|
95
|
+
|
96
|
+
|
97
|
+
<dl>
|
98
|
+
<dt>Defined in:</dt>
|
99
|
+
<dd>lib/bovem/logger.rb</dd>
|
100
|
+
</dl>
|
101
|
+
|
102
|
+
</div>
|
103
103
|
|
104
104
|
<h2>Overview</h2><div class="docstring">
|
105
105
|
<div class="discussion">
|
@@ -113,11 +113,10 @@
|
|
113
113
|
|
114
114
|
</div>
|
115
115
|
<h2>Constant Summary</h2>
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
<
|
120
|
-
<div class="docstring">
|
116
|
+
<dl class="constants">
|
117
|
+
|
118
|
+
<dt id="LEVEL_NAMES-constant" class="">LEVEL_NAMES =
|
119
|
+
<div class="docstring">
|
121
120
|
<div class="discussion">
|
122
121
|
<p>List of valid logger levels.</p>
|
123
122
|
|
@@ -128,22 +127,21 @@
|
|
128
127
|
|
129
128
|
|
130
129
|
</div>
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
130
|
+
</dt>
|
131
|
+
<dd><pre class="code"><span class='lbrace'>{</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>DEBUG</span><span class='tstring_end'>"</span></span> <span class='op'>=></span> <span class='symbol'>:cyan</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>INFO</span><span class='tstring_end'>"</span></span> <span class='op'>=></span> <span class='symbol'>:green</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>WARN</span><span class='tstring_end'>"</span></span> <span class='op'>=></span> <span class='symbol'>:yellow</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>ERROR</span><span class='tstring_end'>"</span></span> <span class='op'>=></span> <span class='symbol'>:red</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>FATAL</span><span class='tstring_end'>"</span></span> <span class='op'>=></span> <span class='symbol'>:magenta</span><span class='rbrace'>}</span><span class='period'>.</span><span class='id identifier rubyid_freeze'>freeze</span></pre></dd>
|
132
|
+
|
133
|
+
</dl>
|
136
134
|
|
137
135
|
|
138
136
|
|
139
137
|
|
140
|
-
<h2>Instance Attribute Summary <small
|
138
|
+
<h2>Instance Attribute Summary <small><a href="#" class="summary_toggle">collapse</a></small></h2>
|
141
139
|
<ul class="summary">
|
142
140
|
|
143
141
|
<li class="public ">
|
144
142
|
<span class="summary_signature">
|
145
143
|
|
146
|
-
<a href="#device-instance_method" title="#device (instance method)"
|
144
|
+
<a href="#device-instance_method" title="#device (instance method)">#<strong>device</strong> ⇒ IO|String </a>
|
147
145
|
|
148
146
|
|
149
147
|
|
@@ -176,7 +174,7 @@
|
|
176
174
|
|
177
175
|
<h2>
|
178
176
|
Class Method Summary
|
179
|
-
<small
|
177
|
+
<small><a href="#" class="summary_toggle">collapse</a></small>
|
180
178
|
</h2>
|
181
179
|
|
182
180
|
<ul class="summary">
|
@@ -184,7 +182,7 @@
|
|
184
182
|
<li class="public ">
|
185
183
|
<span class="summary_signature">
|
186
184
|
|
187
|
-
<a href="#create-class_method" title="create (class method)"
|
185
|
+
<a href="#create-class_method" title="create (class method)">.<strong>create</strong>(file = nil, level: Logger::INFO, formatter: nil) ⇒ Logger </a>
|
188
186
|
|
189
187
|
|
190
188
|
|
@@ -207,7 +205,7 @@
|
|
207
205
|
<li class="public ">
|
208
206
|
<span class="summary_signature">
|
209
207
|
|
210
|
-
<a href="#default_file-class_method" title="default_file (class method)"
|
208
|
+
<a href="#default_file-class_method" title="default_file (class method)">.<strong>default_file</strong> ⇒ String|IO </a>
|
211
209
|
|
212
210
|
|
213
211
|
|
@@ -230,7 +228,7 @@
|
|
230
228
|
<li class="public ">
|
231
229
|
<span class="summary_signature">
|
232
230
|
|
233
|
-
<a href="#default_formatter-class_method" title="default_formatter (class method)"
|
231
|
+
<a href="#default_formatter-class_method" title="default_formatter (class method)">.<strong>default_formatter</strong> ⇒ Proc </a>
|
234
232
|
|
235
233
|
|
236
234
|
|
@@ -253,7 +251,7 @@
|
|
253
251
|
<li class="public ">
|
254
252
|
<span class="summary_signature">
|
255
253
|
|
256
|
-
<a href="#get_real_file-class_method" title="get_real_file (class method)"
|
254
|
+
<a href="#get_real_file-class_method" title="get_real_file (class method)">.<strong>get_real_file</strong>(file) ⇒ String|IO </a>
|
257
255
|
|
258
256
|
|
259
257
|
|
@@ -276,7 +274,7 @@
|
|
276
274
|
<li class="public ">
|
277
275
|
<span class="summary_signature">
|
278
276
|
|
279
|
-
<a href="#start_time-class_method" title="start_time (class method)"
|
277
|
+
<a href="#start_time-class_method" title="start_time (class method)">.<strong>start_time</strong> ⇒ Time </a>
|
280
278
|
|
281
279
|
|
282
280
|
|
@@ -300,7 +298,7 @@
|
|
300
298
|
|
301
299
|
<h2>
|
302
300
|
Instance Method Summary
|
303
|
-
<small
|
301
|
+
<small><a href="#" class="summary_toggle">collapse</a></small>
|
304
302
|
</h2>
|
305
303
|
|
306
304
|
<ul class="summary">
|
@@ -308,7 +306,7 @@
|
|
308
306
|
<li class="public ">
|
309
307
|
<span class="summary_signature">
|
310
308
|
|
311
|
-
<a href="#initialize-instance_method" title="#initialize (instance method)"
|
309
|
+
<a href="#initialize-instance_method" title="#initialize (instance method)">#<strong>initialize</strong>(logdev, shift_age = 0, shift_size = 1_048_576) ⇒ Logger </a>
|
312
310
|
|
313
311
|
|
314
312
|
|
@@ -340,7 +338,7 @@
|
|
340
338
|
<div class="method_details first">
|
341
339
|
<h3 class="signature first" id="initialize-instance_method">
|
342
340
|
|
343
|
-
|
341
|
+
#<strong>initialize</strong>(logdev, shift_age = 0, shift_size = 1_048_576) ⇒ <tt><span class='object_link'><a href="" title="Bovem::Logger (class)">Logger</a></span></tt>
|
344
342
|
|
345
343
|
|
346
344
|
|
@@ -449,7 +447,7 @@
|
|
449
447
|
<div class="method_details first">
|
450
448
|
<h3 class="signature first" id="device-instance_method">
|
451
449
|
|
452
|
-
|
450
|
+
#<strong>device</strong> ⇒ <tt>IO|String</tt> <span class="extras">(readonly)</span>
|
453
451
|
|
454
452
|
|
455
453
|
|
@@ -566,11 +564,11 @@
|
|
566
564
|
<td>
|
567
565
|
<pre class="code"><span class="info file"># File 'lib/bovem/logger.rb', line 12</span>
|
568
566
|
|
569
|
-
<span class='kw'>class</span> <span class='const'>Logger</span> <span class='op'><</span> <span class='op'>::</span><span class='const'>Logger</span>
|
567
|
+
<span class='kw'>class</span> <span class='const'><span class='object_link'><a href="" title="Bovem::Logger (class)">Logger</a></span></span> <span class='op'><</span> <span class='op'>::</span><span class='const'>Logger</span>
|
570
568
|
<span class='id identifier rubyid_attr_reader'>attr_reader</span> <span class='symbol'>:device</span>
|
571
569
|
|
572
570
|
<span class='comment'># List of valid logger levels.
|
573
|
-
</span> <span class='const'>LEVEL_NAMES</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>DEBUG</span><span class='tstring_end'>"</span></span> <span class='op'>=></span> <span class='symbol'>:cyan</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>INFO</span><span class='tstring_end'>"</span></span> <span class='op'>=></span> <span class='symbol'>:green</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>WARN</span><span class='tstring_end'>"</span></span> <span class='op'>=></span> <span class='symbol'>:yellow</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>ERROR</span><span class='tstring_end'>"</span></span> <span class='op'>=></span> <span class='symbol'>:red</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>FATAL</span><span class='tstring_end'>"</span></span> <span class='op'>=></span> <span class='symbol'>:magenta</span><span class='rbrace'>}</span><span class='period'>.</span><span class='id identifier rubyid_freeze'>freeze</span>
|
571
|
+
</span> <span class='const'><span class='object_link'><a href="#LEVEL_NAMES-constant" title="Bovem::Logger::LEVEL_NAMES (constant)">LEVEL_NAMES</a></span></span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>DEBUG</span><span class='tstring_end'>"</span></span> <span class='op'>=></span> <span class='symbol'>:cyan</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>INFO</span><span class='tstring_end'>"</span></span> <span class='op'>=></span> <span class='symbol'>:green</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>WARN</span><span class='tstring_end'>"</span></span> <span class='op'>=></span> <span class='symbol'>:yellow</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>ERROR</span><span class='tstring_end'>"</span></span> <span class='op'>=></span> <span class='symbol'>:red</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>FATAL</span><span class='tstring_end'>"</span></span> <span class='op'>=></span> <span class='symbol'>:magenta</span><span class='rbrace'>}</span><span class='period'>.</span><span class='id identifier rubyid_freeze'>freeze</span>
|
574
572
|
|
575
573
|
<span class='comment'># Creates a new logger.
|
576
574
|
</span> <span class='comment'>#
|
@@ -590,13 +588,13 @@
|
|
590
588
|
</span> <span class='comment'># @param level [Fixnum] The minimum severity to log. See http://www.ruby-doc.org/stdlib-1.9.3/libdoc/logger/rdoc/Logger.html for valid levels.
|
591
589
|
</span> <span class='comment'># @param formatter [Proc] The formatter to use for logging.
|
592
590
|
</span> <span class='comment'># @return [Logger] The new logger.
|
593
|
-
</span> <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_create'>create</span><span class='lparen'>(</span><span class='id identifier rubyid_file'>file</span> <span class='op'>=</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='label'>level:</span> <span class='const'>Logger</span><span class='op'>::</span><span class='const'>INFO</span><span class='comma'>,</span> <span class='label'>formatter:</span> <span class='kw'>nil</span><span class='rparen'>)</span>
|
591
|
+
</span> <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_create'>create</span><span class='lparen'>(</span><span class='id identifier rubyid_file'>file</span> <span class='op'>=</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='label'>level:</span> <span class='const'><span class='object_link'><a href="" title="Bovem::Logger (class)">Logger</a></span></span><span class='op'>::</span><span class='const'>INFO</span><span class='comma'>,</span> <span class='label'>formatter:</span> <span class='kw'>nil</span><span class='rparen'>)</span>
|
594
592
|
<span class='id identifier rubyid_rv'>rv</span> <span class='op'>=</span> <span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='id identifier rubyid_get_real_file'>get_real_file</span><span class='lparen'>(</span><span class='id identifier rubyid_file'>file</span> <span class='op'>||</span> <span class='id identifier rubyid_default_file'>default_file</span><span class='rparen'>)</span><span class='rparen'>)</span>
|
595
593
|
<span class='id identifier rubyid_rv'>rv</span><span class='period'>.</span><span class='id identifier rubyid_level'>level</span> <span class='op'>=</span> <span class='id identifier rubyid_level'>level</span><span class='period'>.</span><span class='id identifier rubyid_to_integer'>to_integer</span>
|
596
594
|
<span class='id identifier rubyid_rv'>rv</span><span class='period'>.</span><span class='id identifier rubyid_formatter'>formatter</span> <span class='op'>=</span> <span class='id identifier rubyid_formatter'>formatter</span> <span class='op'>||</span> <span class='id identifier rubyid_default_formatter'>default_formatter</span>
|
597
595
|
<span class='id identifier rubyid_rv'>rv</span>
|
598
596
|
<span class='kw'>rescue</span>
|
599
|
-
<span class='id identifier rubyid_raise'>raise</span> <span class='const'>Bovem</span><span class='op'>::</span><span class='const'>Errors</span><span class='op'>::</span><span class='const'>InvalidLogger</span>
|
597
|
+
<span class='id identifier rubyid_raise'>raise</span> <span class='const'><span class='object_link'><a href="../Bovem.html" title="Bovem (module)">Bovem</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Errors.html" title="Bovem::Errors (module)">Errors</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Errors/InvalidLogger.html" title="Bovem::Errors::InvalidLogger (class)">InvalidLogger</a></span></span>
|
600
598
|
<span class='kw'>end</span>
|
601
599
|
|
602
600
|
<span class='comment'># Translates a file to standard input or standard output in some special cases.
|
@@ -621,9 +619,9 @@
|
|
621
619
|
</span> <span class='comment'># @return [Proc] The default formatter for logging.
|
622
620
|
</span> <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_default_formatter'>default_formatter</span>
|
623
621
|
<span class='ivar'>@default_formatter</span> <span class='op'>||=</span> <span class='op'>::</span><span class='const'>Proc</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_severity'>severity</span><span class='comma'>,</span> <span class='id identifier rubyid_datetime'>datetime</span><span class='comma'>,</span> <span class='id identifier rubyid__'>_</span><span class='comma'>,</span> <span class='id identifier rubyid_msg'>msg</span><span class='op'>|</span>
|
624
|
-
<span class='id identifier rubyid_color'>color</span> <span class='op'>=</span> <span class='const'>LEVEL_NAMES</span><span class='period'>.</span><span class='id identifier rubyid_fetch'>fetch</span><span class='lparen'>(</span><span class='id identifier rubyid_severity'>severity</span><span class='comma'>,</span> <span class='symbol'>:white</span><span class='rparen'>)</span>
|
622
|
+
<span class='id identifier rubyid_color'>color</span> <span class='op'>=</span> <span class='const'><span class='object_link'><a href="#LEVEL_NAMES-constant" title="Bovem::Logger::LEVEL_NAMES (constant)">LEVEL_NAMES</a></span></span><span class='period'>.</span><span class='id identifier rubyid_fetch'>fetch</span><span class='lparen'>(</span><span class='id identifier rubyid_severity'>severity</span><span class='comma'>,</span> <span class='symbol'>:white</span><span class='rparen'>)</span>
|
625
623
|
|
626
|
-
<span class='id identifier rubyid_header'>header</span> <span class='op'>=</span> <span class='const'>Bovem</span><span class='op'>::</span><span class='const'>Console</span><span class='period'>.</span><span class='id identifier rubyid_replace_markers'>replace_markers</span><span class='lparen'>(</span>
|
624
|
+
<span class='id identifier rubyid_header'>header</span> <span class='op'>=</span> <span class='const'><span class='object_link'><a href="../Bovem.html" title="Bovem (module)">Bovem</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Console.html" title="Bovem::Console (class)">Console</a></span></span><span class='period'>.</span><span class='id identifier rubyid_replace_markers'><span class='object_link'><a href="ConsoleMethods/StyleHandling.html#replace_markers-instance_method" title="Bovem::ConsoleMethods::StyleHandling#replace_markers (method)">replace_markers</a></span></span><span class='lparen'>(</span>
|
627
625
|
<span class='id identifier rubyid_sprintf'>sprintf</span><span class='lparen'>(</span>
|
628
626
|
<span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>{mark=bright-</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_color'>color</span><span class='embexpr_end'>}</span><span class='tstring_content'>}[%s T+%0.5f] %s:{/mark}</span><span class='tstring_end'>"</span></span><span class='comma'>,</span> <span class='id identifier rubyid_datetime'>datetime</span><span class='period'>.</span><span class='id identifier rubyid_strftime'>strftime</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>%Y/%b/%d %H:%M:%S</span><span class='tstring_end'>"</span></span><span class='rparen'>)</span><span class='comma'>,</span>
|
629
627
|
<span class='lbracket'>[</span><span class='id identifier rubyid_datetime'>datetime</span><span class='period'>.</span><span class='id identifier rubyid_to_f'>to_f</span> <span class='op'>-</span> <span class='id identifier rubyid_start_time'>start_time</span><span class='period'>.</span><span class='id identifier rubyid_to_f'>to_f</span><span class='comma'>,</span> <span class='int'>0</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_max'>max</span><span class='comma'>,</span> <span class='id identifier rubyid_severity'>severity</span><span class='period'>.</span><span class='id identifier rubyid_rjust'>rjust</span><span class='lparen'>(</span><span class='int'>5</span><span class='rparen'>)</span>
|
@@ -655,7 +653,7 @@
|
|
655
653
|
<div class="method_details first">
|
656
654
|
<h3 class="signature first" id="create-class_method">
|
657
655
|
|
658
|
-
|
656
|
+
.<strong>create</strong>(file = nil, level: Logger::INFO, formatter: nil) ⇒ <tt><span class='object_link'><a href="" title="Bovem::Logger (class)">Logger</a></span></tt>
|
659
657
|
|
660
658
|
|
661
659
|
|
@@ -757,13 +755,13 @@
|
|
757
755
|
<td>
|
758
756
|
<pre class="code"><span class="info file"># File 'lib/bovem/logger.rb', line 36</span>
|
759
757
|
|
760
|
-
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_create'>create</span><span class='lparen'>(</span><span class='id identifier rubyid_file'>file</span> <span class='op'>=</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='label'>level:</span> <span class='const'>Logger</span><span class='op'>::</span><span class='const'>INFO</span><span class='comma'>,</span> <span class='label'>formatter:</span> <span class='kw'>nil</span><span class='rparen'>)</span>
|
758
|
+
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_create'>create</span><span class='lparen'>(</span><span class='id identifier rubyid_file'>file</span> <span class='op'>=</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='label'>level:</span> <span class='const'><span class='object_link'><a href="" title="Bovem::Logger (class)">Logger</a></span></span><span class='op'>::</span><span class='const'>INFO</span><span class='comma'>,</span> <span class='label'>formatter:</span> <span class='kw'>nil</span><span class='rparen'>)</span>
|
761
759
|
<span class='id identifier rubyid_rv'>rv</span> <span class='op'>=</span> <span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='id identifier rubyid_get_real_file'>get_real_file</span><span class='lparen'>(</span><span class='id identifier rubyid_file'>file</span> <span class='op'>||</span> <span class='id identifier rubyid_default_file'>default_file</span><span class='rparen'>)</span><span class='rparen'>)</span>
|
762
760
|
<span class='id identifier rubyid_rv'>rv</span><span class='period'>.</span><span class='id identifier rubyid_level'>level</span> <span class='op'>=</span> <span class='id identifier rubyid_level'>level</span><span class='period'>.</span><span class='id identifier rubyid_to_integer'>to_integer</span>
|
763
761
|
<span class='id identifier rubyid_rv'>rv</span><span class='period'>.</span><span class='id identifier rubyid_formatter'>formatter</span> <span class='op'>=</span> <span class='id identifier rubyid_formatter'>formatter</span> <span class='op'>||</span> <span class='id identifier rubyid_default_formatter'>default_formatter</span>
|
764
762
|
<span class='id identifier rubyid_rv'>rv</span>
|
765
763
|
<span class='kw'>rescue</span>
|
766
|
-
<span class='id identifier rubyid_raise'>raise</span> <span class='const'>Bovem</span><span class='op'>::</span><span class='const'>Errors</span><span class='op'>::</span><span class='const'>InvalidLogger</span>
|
764
|
+
<span class='id identifier rubyid_raise'>raise</span> <span class='const'><span class='object_link'><a href="../Bovem.html" title="Bovem (module)">Bovem</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Errors.html" title="Bovem::Errors (module)">Errors</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Errors/InvalidLogger.html" title="Bovem::Errors::InvalidLogger (class)">InvalidLogger</a></span></span>
|
767
765
|
<span class='kw'>end</span></pre>
|
768
766
|
</td>
|
769
767
|
</tr>
|
@@ -773,7 +771,7 @@
|
|
773
771
|
<div class="method_details ">
|
774
772
|
<h3 class="signature " id="default_file-class_method">
|
775
773
|
|
776
|
-
|
774
|
+
.<strong>default_file</strong> ⇒ <tt>String|IO</tt>
|
777
775
|
|
778
776
|
|
779
777
|
|
@@ -830,7 +828,7 @@
|
|
830
828
|
<div class="method_details ">
|
831
829
|
<h3 class="signature " id="default_formatter-class_method">
|
832
830
|
|
833
|
-
|
831
|
+
.<strong>default_formatter</strong> ⇒ <tt>Proc</tt>
|
834
832
|
|
835
833
|
|
836
834
|
|
@@ -889,9 +887,9 @@
|
|
889
887
|
|
890
888
|
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_default_formatter'>default_formatter</span>
|
891
889
|
<span class='ivar'>@default_formatter</span> <span class='op'>||=</span> <span class='op'>::</span><span class='const'>Proc</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_severity'>severity</span><span class='comma'>,</span> <span class='id identifier rubyid_datetime'>datetime</span><span class='comma'>,</span> <span class='id identifier rubyid__'>_</span><span class='comma'>,</span> <span class='id identifier rubyid_msg'>msg</span><span class='op'>|</span>
|
892
|
-
<span class='id identifier rubyid_color'>color</span> <span class='op'>=</span> <span class='const'>LEVEL_NAMES</span><span class='period'>.</span><span class='id identifier rubyid_fetch'>fetch</span><span class='lparen'>(</span><span class='id identifier rubyid_severity'>severity</span><span class='comma'>,</span> <span class='symbol'>:white</span><span class='rparen'>)</span>
|
890
|
+
<span class='id identifier rubyid_color'>color</span> <span class='op'>=</span> <span class='const'><span class='object_link'><a href="#LEVEL_NAMES-constant" title="Bovem::Logger::LEVEL_NAMES (constant)">LEVEL_NAMES</a></span></span><span class='period'>.</span><span class='id identifier rubyid_fetch'>fetch</span><span class='lparen'>(</span><span class='id identifier rubyid_severity'>severity</span><span class='comma'>,</span> <span class='symbol'>:white</span><span class='rparen'>)</span>
|
893
891
|
|
894
|
-
<span class='id identifier rubyid_header'>header</span> <span class='op'>=</span> <span class='const'>Bovem</span><span class='op'>::</span><span class='const'>Console</span><span class='period'>.</span><span class='id identifier rubyid_replace_markers'>replace_markers</span><span class='lparen'>(</span>
|
892
|
+
<span class='id identifier rubyid_header'>header</span> <span class='op'>=</span> <span class='const'><span class='object_link'><a href="../Bovem.html" title="Bovem (module)">Bovem</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Console.html" title="Bovem::Console (class)">Console</a></span></span><span class='period'>.</span><span class='id identifier rubyid_replace_markers'><span class='object_link'><a href="ConsoleMethods/StyleHandling.html#replace_markers-instance_method" title="Bovem::ConsoleMethods::StyleHandling#replace_markers (method)">replace_markers</a></span></span><span class='lparen'>(</span>
|
895
893
|
<span class='id identifier rubyid_sprintf'>sprintf</span><span class='lparen'>(</span>
|
896
894
|
<span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>{mark=bright-</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_color'>color</span><span class='embexpr_end'>}</span><span class='tstring_content'>}[%s T+%0.5f] %s:{/mark}</span><span class='tstring_end'>"</span></span><span class='comma'>,</span> <span class='id identifier rubyid_datetime'>datetime</span><span class='period'>.</span><span class='id identifier rubyid_strftime'>strftime</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>%Y/%b/%d %H:%M:%S</span><span class='tstring_end'>"</span></span><span class='rparen'>)</span><span class='comma'>,</span>
|
897
895
|
<span class='lbracket'>[</span><span class='id identifier rubyid_datetime'>datetime</span><span class='period'>.</span><span class='id identifier rubyid_to_f'>to_f</span> <span class='op'>-</span> <span class='id identifier rubyid_start_time'>start_time</span><span class='period'>.</span><span class='id identifier rubyid_to_f'>to_f</span><span class='comma'>,</span> <span class='int'>0</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_max'>max</span><span class='comma'>,</span> <span class='id identifier rubyid_severity'>severity</span><span class='period'>.</span><span class='id identifier rubyid_rjust'>rjust</span><span class='lparen'>(</span><span class='int'>5</span><span class='rparen'>)</span>
|
@@ -909,7 +907,7 @@
|
|
909
907
|
<div class="method_details ">
|
910
908
|
<h3 class="signature " id="get_real_file-class_method">
|
911
909
|
|
912
|
-
|
910
|
+
.<strong>get_real_file</strong>(file) ⇒ <tt>String|IO</tt>
|
913
911
|
|
914
912
|
|
915
913
|
|
@@ -993,7 +991,7 @@
|
|
993
991
|
<div class="method_details ">
|
994
992
|
<h3 class="signature " id="start_time-class_method">
|
995
993
|
|
996
|
-
|
994
|
+
.<strong>start_time</strong> ⇒ <tt>Time</tt>
|
997
995
|
|
998
996
|
|
999
997
|
|
@@ -1051,11 +1049,12 @@
|
|
1051
1049
|
|
1052
1050
|
</div>
|
1053
1051
|
|
1054
|
-
|
1055
|
-
Generated on
|
1052
|
+
<div id="footer">
|
1053
|
+
Generated on Thu Jan 12 16:10:59 2017 by
|
1056
1054
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
1057
|
-
0.
|
1055
|
+
0.9.7 (ruby-2.3.0).
|
1058
1056
|
</div>
|
1059
1057
|
|
1058
|
+
</div>
|
1060
1059
|
</body>
|
1061
1060
|
</html>
|
@@ -1,12 +1,12 @@
|
|
1
|
-
<!DOCTYPE html
|
2
|
-
|
3
|
-
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
4
3
|
<head>
|
5
|
-
<meta
|
4
|
+
<meta charset="utf-8">
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
6
6
|
<title>
|
7
7
|
Class: Bovem::Option
|
8
8
|
|
9
|
-
— Documentation by YARD 0.
|
9
|
+
— Documentation by YARD 0.9.7
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
@@ -15,9 +15,8 @@
|
|
15
15
|
<link rel="stylesheet" href="../css/common.css" type="text/css" charset="utf-8" />
|
16
16
|
|
17
17
|
<script type="text/javascript" charset="utf-8">
|
18
|
-
|
18
|
+
pathId = "Bovem::Option";
|
19
19
|
relpath = '../';
|
20
|
-
framesUrl = "../frames.html#!Bovem/Option.html";
|
21
20
|
</script>
|
22
21
|
|
23
22
|
|
@@ -28,51 +27,48 @@
|
|
28
27
|
|
29
28
|
</head>
|
30
29
|
<body>
|
31
|
-
<div
|
32
|
-
<
|
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">
|
33
38
|
|
34
39
|
<a href="../_index.html">Index (O)</a> »
|
35
40
|
<span class='title'><span class='object_link'><a href="../Bovem.html" title="Bovem (module)">Bovem</a></span></span>
|
36
41
|
»
|
37
42
|
<span class="title">Option</span>
|
38
43
|
|
39
|
-
|
40
|
-
<div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
|
41
44
|
</div>
|
42
45
|
|
43
|
-
|
46
|
+
<div id="search">
|
44
47
|
|
45
48
|
<a class="full_list_link" id="class_list_link"
|
46
49
|
href="../class_list.html">
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
</a>
|
54
|
-
|
55
|
-
<a class="full_list_link" id="file_list_link"
|
56
|
-
href="../file_list.html">
|
57
|
-
File List
|
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>
|
58
56
|
</a>
|
59
57
|
|
60
58
|
</div>
|
61
|
-
|
62
|
-
|
59
|
+
<div class="clear"></div>
|
60
|
+
</div>
|
63
61
|
|
64
|
-
|
65
|
-
|
66
|
-
<div id="content"><h1>Class: Bovem::Option
|
62
|
+
<div id="content"><h1>Class: Bovem::Option
|
67
63
|
|
68
64
|
|
69
65
|
|
70
66
|
</h1>
|
71
|
-
|
72
|
-
<dl class="box">
|
67
|
+
<div class="box_info">
|
73
68
|
|
74
|
-
|
75
|
-
<
|
69
|
+
<dl>
|
70
|
+
<dt>Inherits:</dt>
|
71
|
+
<dd>
|
76
72
|
<span class="inheritName">Object</span>
|
77
73
|
|
78
74
|
<ul class="fullTree">
|
@@ -83,21 +79,25 @@
|
|
83
79
|
</ul>
|
84
80
|
<a href="#" class="inheritanceTree">show all</a>
|
85
81
|
|
86
|
-
|
87
|
-
|
82
|
+
</dd>
|
83
|
+
</dl>
|
84
|
+
|
85
|
+
|
88
86
|
|
89
87
|
|
90
|
-
|
91
88
|
|
92
|
-
|
93
89
|
|
94
90
|
|
91
|
+
|
92
|
+
|
93
|
+
|
95
94
|
|
96
|
-
|
97
|
-
<
|
95
|
+
<dl>
|
96
|
+
<dt>Defined in:</dt>
|
97
|
+
<dd>lib/bovem/option.rb</dd>
|
98
|
+
</dl>
|
98
99
|
|
99
|
-
</
|
100
|
-
<div class="clear"></div>
|
100
|
+
</div>
|
101
101
|
|
102
102
|
<h2>Overview</h2><div class="docstring">
|
103
103
|
<div class="discussion">
|
@@ -113,13 +113,13 @@
|
|
113
113
|
|
114
114
|
|
115
115
|
|
116
|
-
<h2>Instance Attribute Summary <small
|
116
|
+
<h2>Instance Attribute Summary <small><a href="#" class="summary_toggle">collapse</a></small></h2>
|
117
117
|
<ul class="summary">
|
118
118
|
|
119
119
|
<li class="public ">
|
120
120
|
<span class="summary_signature">
|
121
121
|
|
122
|
-
<a href="#action-instance_method" title="#action (instance method)"
|
122
|
+
<a href="#action-instance_method" title="#action (instance method)">#<strong>action</strong> ⇒ Proc </a>
|
123
123
|
|
124
124
|
|
125
125
|
|
@@ -145,7 +145,7 @@
|
|
145
145
|
<li class="public ">
|
146
146
|
<span class="summary_signature">
|
147
147
|
|
148
|
-
<a href="#default-instance_method" title="#default (instance method)"
|
148
|
+
<a href="#default-instance_method" title="#default (instance method)">#<strong>default</strong> ⇒ Object </a>
|
149
149
|
|
150
150
|
|
151
151
|
|
@@ -171,7 +171,7 @@
|
|
171
171
|
<li class="public ">
|
172
172
|
<span class="summary_signature">
|
173
173
|
|
174
|
-
<a href="#help-instance_method" title="#help (instance method)"
|
174
|
+
<a href="#help-instance_method" title="#help (instance method)">#<strong>help</strong> ⇒ String </a>
|
175
175
|
|
176
176
|
|
177
177
|
|
@@ -197,7 +197,7 @@
|
|
197
197
|
<li class="public ">
|
198
198
|
<span class="summary_signature">
|
199
199
|
|
200
|
-
<a href="#long-instance_method" title="#long (instance method)"
|
200
|
+
<a href="#long-instance_method" title="#long (instance method)">#<strong>long</strong> ⇒ String </a>
|
201
201
|
|
202
202
|
|
203
203
|
|
@@ -223,7 +223,7 @@
|
|
223
223
|
<li class="public ">
|
224
224
|
<span class="summary_signature">
|
225
225
|
|
226
|
-
<a href="#meta-instance_method" title="#meta (instance method)"
|
226
|
+
<a href="#meta-instance_method" title="#meta (instance method)">#<strong>meta</strong> ⇒ String|NilClass </a>
|
227
227
|
|
228
228
|
|
229
229
|
|
@@ -249,7 +249,7 @@
|
|
249
249
|
<li class="public ">
|
250
250
|
<span class="summary_signature">
|
251
251
|
|
252
|
-
<a href="#name-instance_method" title="#name (instance method)"
|
252
|
+
<a href="#name-instance_method" title="#name (instance method)">#<strong>name</strong> ⇒ String </a>
|
253
253
|
|
254
254
|
|
255
255
|
|
@@ -275,7 +275,7 @@
|
|
275
275
|
<li class="public ">
|
276
276
|
<span class="summary_signature">
|
277
277
|
|
278
|
-
<a href="#parent-instance_method" title="#parent (instance method)"
|
278
|
+
<a href="#parent-instance_method" title="#parent (instance method)">#<strong>parent</strong> ⇒ Command </a>
|
279
279
|
|
280
280
|
|
281
281
|
|
@@ -301,7 +301,7 @@
|
|
301
301
|
<li class="public ">
|
302
302
|
<span class="summary_signature">
|
303
303
|
|
304
|
-
<a href="#required-instance_method" title="#required (instance method)"
|
304
|
+
<a href="#required-instance_method" title="#required (instance method)">#<strong>required</strong> ⇒ Boolean </a>
|
305
305
|
|
306
306
|
|
307
307
|
|
@@ -327,7 +327,7 @@
|
|
327
327
|
<li class="public ">
|
328
328
|
<span class="summary_signature">
|
329
329
|
|
330
|
-
<a href="#short-instance_method" title="#short (instance method)"
|
330
|
+
<a href="#short-instance_method" title="#short (instance method)">#<strong>short</strong> ⇒ String </a>
|
331
331
|
|
332
332
|
|
333
333
|
|
@@ -353,7 +353,7 @@
|
|
353
353
|
<li class="public ">
|
354
354
|
<span class="summary_signature">
|
355
355
|
|
356
|
-
<a href="#type-instance_method" title="#type (instance method)"
|
356
|
+
<a href="#type-instance_method" title="#type (instance method)">#<strong>type</strong> ⇒ Class </a>
|
357
357
|
|
358
358
|
|
359
359
|
|
@@ -379,7 +379,7 @@
|
|
379
379
|
<li class="public ">
|
380
380
|
<span class="summary_signature">
|
381
381
|
|
382
|
-
<a href="#validator-instance_method" title="#validator (instance method)"
|
382
|
+
<a href="#validator-instance_method" title="#validator (instance method)">#<strong>validator</strong> ⇒ Array|Regexp </a>
|
383
383
|
|
384
384
|
|
385
385
|
|
@@ -405,7 +405,7 @@
|
|
405
405
|
<li class="public ">
|
406
406
|
<span class="summary_signature">
|
407
407
|
|
408
|
-
<a href="#value-instance_method" title="#value (instance method)"
|
408
|
+
<a href="#value-instance_method" title="#value (instance method)">#<strong>value</strong> ⇒ Object </a>
|
409
409
|
|
410
410
|
|
411
411
|
|
@@ -436,7 +436,7 @@
|
|
436
436
|
|
437
437
|
<h2>
|
438
438
|
Instance Method Summary
|
439
|
-
<small
|
439
|
+
<small><a href="#" class="summary_toggle">collapse</a></small>
|
440
440
|
</h2>
|
441
441
|
|
442
442
|
<ul class="summary">
|
@@ -444,7 +444,7 @@
|
|
444
444
|
<li class="public ">
|
445
445
|
<span class="summary_signature">
|
446
446
|
|
447
|
-
<a href="#complete_long-instance_method" title="#complete_long (instance method)"
|
447
|
+
<a href="#complete_long-instance_method" title="#complete_long (instance method)">#<strong>complete_long</strong> ⇒ String </a>
|
448
448
|
|
449
449
|
|
450
450
|
|
@@ -467,7 +467,7 @@
|
|
467
467
|
<li class="public ">
|
468
468
|
<span class="summary_signature">
|
469
469
|
|
470
|
-
<a href="#complete_short-instance_method" title="#complete_short (instance method)"
|
470
|
+
<a href="#complete_short-instance_method" title="#complete_short (instance method)">#<strong>complete_short</strong> ⇒ String </a>
|
471
471
|
|
472
472
|
|
473
473
|
|
@@ -490,7 +490,7 @@
|
|
490
490
|
<li class="public ">
|
491
491
|
<span class="summary_signature">
|
492
492
|
|
493
|
-
<a href="#default%3F-instance_method" title="#default? (instance method)"
|
493
|
+
<a href="#default%3F-instance_method" title="#default? (instance method)">#<strong>default?</strong> ⇒ Boolean </a>
|
494
494
|
|
495
495
|
|
496
496
|
|
@@ -513,7 +513,7 @@
|
|
513
513
|
<li class="public ">
|
514
514
|
<span class="summary_signature">
|
515
515
|
|
516
|
-
<a href="#execute_action-instance_method" title="#execute_action (instance method)"
|
516
|
+
<a href="#execute_action-instance_method" title="#execute_action (instance method)">#<strong>execute_action</strong> ⇒ Object </a>
|
517
517
|
|
518
518
|
|
519
519
|
|
@@ -536,7 +536,7 @@
|
|
536
536
|
<li class="public ">
|
537
537
|
<span class="summary_signature">
|
538
538
|
|
539
|
-
<a href="#help%3F-instance_method" title="#help? (instance method)"
|
539
|
+
<a href="#help%3F-instance_method" title="#help? (instance method)">#<strong>help?</strong> ⇒ Boolean </a>
|
540
540
|
|
541
541
|
|
542
542
|
|
@@ -559,7 +559,7 @@
|
|
559
559
|
<li class="public ">
|
560
560
|
<span class="summary_signature">
|
561
561
|
|
562
|
-
<a href="#initialize-instance_method" title="#initialize (instance method)"
|
562
|
+
<a href="#initialize-instance_method" title="#initialize (instance method)">#<strong>initialize</strong>(name, forms = [], options = {}, &action) ⇒ Option </a>
|
563
563
|
|
564
564
|
|
565
565
|
|
@@ -584,7 +584,7 @@
|
|
584
584
|
<li class="public ">
|
585
585
|
<span class="summary_signature">
|
586
586
|
|
587
|
-
<a href="#label-instance_method" title="#label (instance method)"
|
587
|
+
<a href="#label-instance_method" title="#label (instance method)">#<strong>label</strong> ⇒ String </a>
|
588
588
|
|
589
589
|
|
590
590
|
|
@@ -607,7 +607,7 @@
|
|
607
607
|
<li class="public ">
|
608
608
|
<span class="summary_signature">
|
609
609
|
|
610
|
-
<a href="#provided%3F-instance_method" title="#provided? (instance method)"
|
610
|
+
<a href="#provided%3F-instance_method" title="#provided? (instance method)">#<strong>provided?</strong> ⇒ Boolean </a>
|
611
611
|
|
612
612
|
|
613
613
|
|
@@ -630,7 +630,7 @@
|
|
630
630
|
<li class="public ">
|
631
631
|
<span class="summary_signature">
|
632
632
|
|
633
|
-
<a href="#requires_argument%3F-instance_method" title="#requires_argument? (instance method)"
|
633
|
+
<a href="#requires_argument%3F-instance_method" title="#requires_argument? (instance method)">#<strong>requires_argument?</strong> ⇒ Boolean </a>
|
634
634
|
|
635
635
|
|
636
636
|
|
@@ -653,7 +653,7 @@
|
|
653
653
|
<li class="public ">
|
654
654
|
<span class="summary_signature">
|
655
655
|
|
656
|
-
<a href="#set-instance_method" title="#set (instance method)"
|
656
|
+
<a href="#set-instance_method" title="#set (instance method)">#<strong>set</strong>(value, raise_error = true) ⇒ Boolean </a>
|
657
657
|
|
658
658
|
|
659
659
|
|
@@ -682,7 +682,7 @@
|
|
682
682
|
<div class="method_details first">
|
683
683
|
<h3 class="signature first" id="initialize-instance_method">
|
684
684
|
|
685
|
-
|
685
|
+
#<strong>initialize</strong>(name, forms = [], options = {}, &action) ⇒ <tt><span class='object_link'><a href="" title="Bovem::Option (class)">Option</a></span></tt>
|
686
686
|
|
687
687
|
|
688
688
|
|
@@ -805,7 +805,7 @@
|
|
805
805
|
<div class="method_details first">
|
806
806
|
<h3 class="signature first" id="action-instance_method">
|
807
807
|
|
808
|
-
|
808
|
+
#<strong>action</strong> ⇒ <tt>Proc</tt>
|
809
809
|
|
810
810
|
|
811
811
|
|
@@ -1052,7 +1052,7 @@
|
|
1052
1052
|
<td>
|
1053
1053
|
<pre class="code"><span class="info file"># File 'lib/bovem/option.rb', line 41</span>
|
1054
1054
|
|
1055
|
-
<span class='kw'>class</span> <span class='const'>Option</span>
|
1055
|
+
<span class='kw'>class</span> <span class='const'><span class='object_link'><a href="" title="Bovem::Option (class)">Option</a></span></span>
|
1056
1056
|
<span class='id identifier rubyid_attr_accessor'>attr_accessor</span> <span class='symbol'>:name</span>
|
1057
1057
|
<span class='id identifier rubyid_attr_accessor'>attr_accessor</span> <span class='symbol'>:short</span>
|
1058
1058
|
<span class='id identifier rubyid_attr_accessor'>attr_accessor</span> <span class='symbol'>:long</span>
|
@@ -1147,7 +1147,7 @@
|
|
1147
1147
|
</span> <span class='comment'>#
|
1148
1148
|
</span> <span class='comment'># @return [Object] The default value for this option.
|
1149
1149
|
</span> <span class='kw'>def</span> <span class='id identifier rubyid_default'>default</span>
|
1150
|
-
<span class='ivar'>@default</span> <span class='op'>||</span> <span class='const'>Bovem</span><span class='op'>::</span><span class='const'>OPTION_TYPES</span><span class='lbracket'>[</span><span class='ivar'>@type</span><span class='rbracket'>]</span> <span class='op'>||</span> <span class='kw'>false</span>
|
1150
|
+
<span class='ivar'>@default</span> <span class='op'>||</span> <span class='const'><span class='object_link'><a href="../Bovem.html" title="Bovem (module)">Bovem</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../Bovem.html#OPTION_TYPES-constant" title="Bovem::OPTION_TYPES (constant)">OPTION_TYPES</a></span></span><span class='lbracket'>[</span><span class='ivar'>@type</span><span class='rbracket'>]</span> <span class='op'>||</span> <span class='kw'>false</span>
|
1151
1151
|
<span class='kw'>end</span>
|
1152
1152
|
|
1153
1153
|
<span class='comment'># Check if the current option has a default value.
|
@@ -1240,10 +1240,10 @@
|
|
1240
1240
|
<span class='kw'>case</span> <span class='id identifier rubyid_vs'>vs</span>
|
1241
1241
|
<span class='kw'>when</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>match</span><span class='tstring_end'>"</span></span> <span class='kw'>then</span> <span class='id identifier rubyid_locale'>locale</span><span class='period'>.</span><span class='id identifier rubyid_invalid_for_regexp'>invalid_for_regexp</span><span class='lparen'>(</span><span class='id identifier rubyid_label'>label</span><span class='comma'>,</span> <span class='ivar'>@validator</span><span class='period'>.</span><span class='id identifier rubyid_inspect'>inspect</span><span class='rparen'>)</span>
|
1242
1242
|
<span class='kw'>when</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>call</span><span class='tstring_end'>"</span></span> <span class='kw'>then</span> <span class='id identifier rubyid_locale'>locale</span><span class='period'>.</span><span class='id identifier rubyid_invalid_for_proc'>invalid_for_proc</span><span class='lparen'>(</span><span class='id identifier rubyid_label'>label</span><span class='rparen'>)</span>
|
1243
|
-
<span class='kw'>else</span> <span class='id identifier rubyid_locale'>locale</span><span class='period'>.</span><span class='id identifier rubyid_invalid_value'>invalid_value</span><span class='lparen'>(</span><span class='id identifier rubyid_label'>label</span><span class='comma'>,</span> <span class='const'>Bovem</span><span class='op'>::</span><span class='const'>Parser</span><span class='period'>.</span><span class='id identifier rubyid_smart_join'>smart_join</span><span class='lparen'>(</span><span class='ivar'>@validator</span><span class='period'>.</span><span class='id identifier rubyid_ensure_array'>ensure_array</span><span class='comma'>,</span> <span class='label'>separator:</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>, </span><span class='tstring_end'>"</span></span><span class='comma'>,</span> <span class='label'>last_separator:</span> <span class='id identifier rubyid_locale'>locale</span><span class='period'>.</span><span class='id identifier rubyid_join_separator'>join_separator</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_html_safe'>html_safe</span><span class='rparen'>)</span>
|
1243
|
+
<span class='kw'>else</span> <span class='id identifier rubyid_locale'>locale</span><span class='period'>.</span><span class='id identifier rubyid_invalid_value'>invalid_value</span><span class='lparen'>(</span><span class='id identifier rubyid_label'>label</span><span class='comma'>,</span> <span class='const'><span class='object_link'><a href="../Bovem.html" title="Bovem (module)">Bovem</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Parser.html" title="Bovem::Parser (class)">Parser</a></span></span><span class='period'>.</span><span class='id identifier rubyid_smart_join'>smart_join</span><span class='lparen'>(</span><span class='ivar'>@validator</span><span class='period'>.</span><span class='id identifier rubyid_ensure_array'>ensure_array</span><span class='comma'>,</span> <span class='label'>separator:</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>, </span><span class='tstring_end'>"</span></span><span class='comma'>,</span> <span class='label'>last_separator:</span> <span class='id identifier rubyid_locale'>locale</span><span class='period'>.</span><span class='id identifier rubyid_join_separator'>join_separator</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_html_safe'>html_safe</span><span class='rparen'>)</span>
|
1244
1244
|
<span class='kw'>end</span>
|
1245
1245
|
|
1246
|
-
<span class='id identifier rubyid_raise'>raise</span> <span class='const'>Bovem</span><span class='op'>::</span><span class='const'>Errors</span><span class='op'>::</span><span class='const'>Error</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='kw'>self</span><span class='comma'>,</span> <span class='symbol'>:validation_failed</span><span class='comma'>,</span> <span class='id identifier rubyid_message'>message</span><span class='rparen'>)</span>
|
1246
|
+
<span class='id identifier rubyid_raise'>raise</span> <span class='const'><span class='object_link'><a href="../Bovem.html" title="Bovem (module)">Bovem</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Errors.html" title="Bovem::Errors (module)">Errors</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Errors/Error.html" title="Bovem::Errors::Error (class)">Error</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="Errors/Error.html#initialize-instance_method" title="Bovem::Errors::Error#initialize (method)">new</a></span></span><span class='lparen'>(</span><span class='kw'>self</span><span class='comma'>,</span> <span class='symbol'>:validation_failed</span><span class='comma'>,</span> <span class='id identifier rubyid_message'>message</span><span class='rparen'>)</span>
|
1247
1247
|
<span class='kw'>end</span>
|
1248
1248
|
|
1249
1249
|
<span class='comment'># :nodoc:
|
@@ -1266,7 +1266,7 @@
|
|
1266
1266
|
<div class="method_details ">
|
1267
1267
|
<h3 class="signature " id="default-instance_method">
|
1268
1268
|
|
1269
|
-
|
1269
|
+
#<strong>default</strong> ⇒ <tt>Object</tt>
|
1270
1270
|
|
1271
1271
|
|
1272
1272
|
|
@@ -1513,7 +1513,7 @@
|
|
1513
1513
|
<td>
|
1514
1514
|
<pre class="code"><span class="info file"># File 'lib/bovem/option.rb', line 41</span>
|
1515
1515
|
|
1516
|
-
<span class='kw'>class</span> <span class='const'>Option</span>
|
1516
|
+
<span class='kw'>class</span> <span class='const'><span class='object_link'><a href="" title="Bovem::Option (class)">Option</a></span></span>
|
1517
1517
|
<span class='id identifier rubyid_attr_accessor'>attr_accessor</span> <span class='symbol'>:name</span>
|
1518
1518
|
<span class='id identifier rubyid_attr_accessor'>attr_accessor</span> <span class='symbol'>:short</span>
|
1519
1519
|
<span class='id identifier rubyid_attr_accessor'>attr_accessor</span> <span class='symbol'>:long</span>
|
@@ -1608,7 +1608,7 @@
|
|
1608
1608
|
</span> <span class='comment'>#
|
1609
1609
|
</span> <span class='comment'># @return [Object] The default value for this option.
|
1610
1610
|
</span> <span class='kw'>def</span> <span class='id identifier rubyid_default'>default</span>
|
1611
|
-
<span class='ivar'>@default</span> <span class='op'>||</span> <span class='const'>Bovem</span><span class='op'>::</span><span class='const'>OPTION_TYPES</span><span class='lbracket'>[</span><span class='ivar'>@type</span><span class='rbracket'>]</span> <span class='op'>||</span> <span class='kw'>false</span>
|
1611
|
+
<span class='ivar'>@default</span> <span class='op'>||</span> <span class='const'><span class='object_link'><a href="../Bovem.html" title="Bovem (module)">Bovem</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../Bovem.html#OPTION_TYPES-constant" title="Bovem::OPTION_TYPES (constant)">OPTION_TYPES</a></span></span><span class='lbracket'>[</span><span class='ivar'>@type</span><span class='rbracket'>]</span> <span class='op'>||</span> <span class='kw'>false</span>
|
1612
1612
|
<span class='kw'>end</span>
|
1613
1613
|
|
1614
1614
|
<span class='comment'># Check if the current option has a default value.
|
@@ -1701,10 +1701,10 @@
|
|
1701
1701
|
<span class='kw'>case</span> <span class='id identifier rubyid_vs'>vs</span>
|
1702
1702
|
<span class='kw'>when</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>match</span><span class='tstring_end'>"</span></span> <span class='kw'>then</span> <span class='id identifier rubyid_locale'>locale</span><span class='period'>.</span><span class='id identifier rubyid_invalid_for_regexp'>invalid_for_regexp</span><span class='lparen'>(</span><span class='id identifier rubyid_label'>label</span><span class='comma'>,</span> <span class='ivar'>@validator</span><span class='period'>.</span><span class='id identifier rubyid_inspect'>inspect</span><span class='rparen'>)</span>
|
1703
1703
|
<span class='kw'>when</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>call</span><span class='tstring_end'>"</span></span> <span class='kw'>then</span> <span class='id identifier rubyid_locale'>locale</span><span class='period'>.</span><span class='id identifier rubyid_invalid_for_proc'>invalid_for_proc</span><span class='lparen'>(</span><span class='id identifier rubyid_label'>label</span><span class='rparen'>)</span>
|
1704
|
-
<span class='kw'>else</span> <span class='id identifier rubyid_locale'>locale</span><span class='period'>.</span><span class='id identifier rubyid_invalid_value'>invalid_value</span><span class='lparen'>(</span><span class='id identifier rubyid_label'>label</span><span class='comma'>,</span> <span class='const'>Bovem</span><span class='op'>::</span><span class='const'>Parser</span><span class='period'>.</span><span class='id identifier rubyid_smart_join'>smart_join</span><span class='lparen'>(</span><span class='ivar'>@validator</span><span class='period'>.</span><span class='id identifier rubyid_ensure_array'>ensure_array</span><span class='comma'>,</span> <span class='label'>separator:</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>, </span><span class='tstring_end'>"</span></span><span class='comma'>,</span> <span class='label'>last_separator:</span> <span class='id identifier rubyid_locale'>locale</span><span class='period'>.</span><span class='id identifier rubyid_join_separator'>join_separator</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_html_safe'>html_safe</span><span class='rparen'>)</span>
|
1704
|
+
<span class='kw'>else</span> <span class='id identifier rubyid_locale'>locale</span><span class='period'>.</span><span class='id identifier rubyid_invalid_value'>invalid_value</span><span class='lparen'>(</span><span class='id identifier rubyid_label'>label</span><span class='comma'>,</span> <span class='const'><span class='object_link'><a href="../Bovem.html" title="Bovem (module)">Bovem</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Parser.html" title="Bovem::Parser (class)">Parser</a></span></span><span class='period'>.</span><span class='id identifier rubyid_smart_join'>smart_join</span><span class='lparen'>(</span><span class='ivar'>@validator</span><span class='period'>.</span><span class='id identifier rubyid_ensure_array'>ensure_array</span><span class='comma'>,</span> <span class='label'>separator:</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>, </span><span class='tstring_end'>"</span></span><span class='comma'>,</span> <span class='label'>last_separator:</span> <span class='id identifier rubyid_locale'>locale</span><span class='period'>.</span><span class='id identifier rubyid_join_separator'>join_separator</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_html_safe'>html_safe</span><span class='rparen'>)</span>
|
1705
1705
|
<span class='kw'>end</span>
|
1706
1706
|
|
1707
|
-
<span class='id identifier rubyid_raise'>raise</span> <span class='const'>Bovem</span><span class='op'>::</span><span class='const'>Errors</span><span class='op'>::</span><span class='const'>Error</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='kw'>self</span><span class='comma'>,</span> <span class='symbol'>:validation_failed</span><span class='comma'>,</span> <span class='id identifier rubyid_message'>message</span><span class='rparen'>)</span>
|
1707
|
+
<span class='id identifier rubyid_raise'>raise</span> <span class='const'><span class='object_link'><a href="../Bovem.html" title="Bovem (module)">Bovem</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Errors.html" title="Bovem::Errors (module)">Errors</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Errors/Error.html" title="Bovem::Errors::Error (class)">Error</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="Errors/Error.html#initialize-instance_method" title="Bovem::Errors::Error#initialize (method)">new</a></span></span><span class='lparen'>(</span><span class='kw'>self</span><span class='comma'>,</span> <span class='symbol'>:validation_failed</span><span class='comma'>,</span> <span class='id identifier rubyid_message'>message</span><span class='rparen'>)</span>
|
1708
1708
|
<span class='kw'>end</span>
|
1709
1709
|
|
1710
1710
|
<span class='comment'># :nodoc:
|
@@ -1727,7 +1727,7 @@
|
|
1727
1727
|
<div class="method_details ">
|
1728
1728
|
<h3 class="signature " id="help-instance_method">
|
1729
1729
|
|
1730
|
-
|
1730
|
+
#<strong>help</strong> ⇒ <tt>String</tt>
|
1731
1731
|
|
1732
1732
|
|
1733
1733
|
|
@@ -1974,7 +1974,7 @@
|
|
1974
1974
|
<td>
|
1975
1975
|
<pre class="code"><span class="info file"># File 'lib/bovem/option.rb', line 41</span>
|
1976
1976
|
|
1977
|
-
<span class='kw'>class</span> <span class='const'>Option</span>
|
1977
|
+
<span class='kw'>class</span> <span class='const'><span class='object_link'><a href="" title="Bovem::Option (class)">Option</a></span></span>
|
1978
1978
|
<span class='id identifier rubyid_attr_accessor'>attr_accessor</span> <span class='symbol'>:name</span>
|
1979
1979
|
<span class='id identifier rubyid_attr_accessor'>attr_accessor</span> <span class='symbol'>:short</span>
|
1980
1980
|
<span class='id identifier rubyid_attr_accessor'>attr_accessor</span> <span class='symbol'>:long</span>
|
@@ -2069,7 +2069,7 @@
|
|
2069
2069
|
</span> <span class='comment'>#
|
2070
2070
|
</span> <span class='comment'># @return [Object] The default value for this option.
|
2071
2071
|
</span> <span class='kw'>def</span> <span class='id identifier rubyid_default'>default</span>
|
2072
|
-
<span class='ivar'>@default</span> <span class='op'>||</span> <span class='const'>Bovem</span><span class='op'>::</span><span class='const'>OPTION_TYPES</span><span class='lbracket'>[</span><span class='ivar'>@type</span><span class='rbracket'>]</span> <span class='op'>||</span> <span class='kw'>false</span>
|
2072
|
+
<span class='ivar'>@default</span> <span class='op'>||</span> <span class='const'><span class='object_link'><a href="../Bovem.html" title="Bovem (module)">Bovem</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../Bovem.html#OPTION_TYPES-constant" title="Bovem::OPTION_TYPES (constant)">OPTION_TYPES</a></span></span><span class='lbracket'>[</span><span class='ivar'>@type</span><span class='rbracket'>]</span> <span class='op'>||</span> <span class='kw'>false</span>
|
2073
2073
|
<span class='kw'>end</span>
|
2074
2074
|
|
2075
2075
|
<span class='comment'># Check if the current option has a default value.
|
@@ -2162,10 +2162,10 @@
|
|
2162
2162
|
<span class='kw'>case</span> <span class='id identifier rubyid_vs'>vs</span>
|
2163
2163
|
<span class='kw'>when</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>match</span><span class='tstring_end'>"</span></span> <span class='kw'>then</span> <span class='id identifier rubyid_locale'>locale</span><span class='period'>.</span><span class='id identifier rubyid_invalid_for_regexp'>invalid_for_regexp</span><span class='lparen'>(</span><span class='id identifier rubyid_label'>label</span><span class='comma'>,</span> <span class='ivar'>@validator</span><span class='period'>.</span><span class='id identifier rubyid_inspect'>inspect</span><span class='rparen'>)</span>
|
2164
2164
|
<span class='kw'>when</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>call</span><span class='tstring_end'>"</span></span> <span class='kw'>then</span> <span class='id identifier rubyid_locale'>locale</span><span class='period'>.</span><span class='id identifier rubyid_invalid_for_proc'>invalid_for_proc</span><span class='lparen'>(</span><span class='id identifier rubyid_label'>label</span><span class='rparen'>)</span>
|
2165
|
-
<span class='kw'>else</span> <span class='id identifier rubyid_locale'>locale</span><span class='period'>.</span><span class='id identifier rubyid_invalid_value'>invalid_value</span><span class='lparen'>(</span><span class='id identifier rubyid_label'>label</span><span class='comma'>,</span> <span class='const'>Bovem</span><span class='op'>::</span><span class='const'>Parser</span><span class='period'>.</span><span class='id identifier rubyid_smart_join'>smart_join</span><span class='lparen'>(</span><span class='ivar'>@validator</span><span class='period'>.</span><span class='id identifier rubyid_ensure_array'>ensure_array</span><span class='comma'>,</span> <span class='label'>separator:</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>, </span><span class='tstring_end'>"</span></span><span class='comma'>,</span> <span class='label'>last_separator:</span> <span class='id identifier rubyid_locale'>locale</span><span class='period'>.</span><span class='id identifier rubyid_join_separator'>join_separator</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_html_safe'>html_safe</span><span class='rparen'>)</span>
|
2165
|
+
<span class='kw'>else</span> <span class='id identifier rubyid_locale'>locale</span><span class='period'>.</span><span class='id identifier rubyid_invalid_value'>invalid_value</span><span class='lparen'>(</span><span class='id identifier rubyid_label'>label</span><span class='comma'>,</span> <span class='const'><span class='object_link'><a href="../Bovem.html" title="Bovem (module)">Bovem</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Parser.html" title="Bovem::Parser (class)">Parser</a></span></span><span class='period'>.</span><span class='id identifier rubyid_smart_join'>smart_join</span><span class='lparen'>(</span><span class='ivar'>@validator</span><span class='period'>.</span><span class='id identifier rubyid_ensure_array'>ensure_array</span><span class='comma'>,</span> <span class='label'>separator:</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>, </span><span class='tstring_end'>"</span></span><span class='comma'>,</span> <span class='label'>last_separator:</span> <span class='id identifier rubyid_locale'>locale</span><span class='period'>.</span><span class='id identifier rubyid_join_separator'>join_separator</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_html_safe'>html_safe</span><span class='rparen'>)</span>
|
2166
2166
|
<span class='kw'>end</span>
|
2167
2167
|
|
2168
|
-
<span class='id identifier rubyid_raise'>raise</span> <span class='const'>Bovem</span><span class='op'>::</span><span class='const'>Errors</span><span class='op'>::</span><span class='const'>Error</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='kw'>self</span><span class='comma'>,</span> <span class='symbol'>:validation_failed</span><span class='comma'>,</span> <span class='id identifier rubyid_message'>message</span><span class='rparen'>)</span>
|
2168
|
+
<span class='id identifier rubyid_raise'>raise</span> <span class='const'><span class='object_link'><a href="../Bovem.html" title="Bovem (module)">Bovem</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Errors.html" title="Bovem::Errors (module)">Errors</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Errors/Error.html" title="Bovem::Errors::Error (class)">Error</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="Errors/Error.html#initialize-instance_method" title="Bovem::Errors::Error#initialize (method)">new</a></span></span><span class='lparen'>(</span><span class='kw'>self</span><span class='comma'>,</span> <span class='symbol'>:validation_failed</span><span class='comma'>,</span> <span class='id identifier rubyid_message'>message</span><span class='rparen'>)</span>
|
2169
2169
|
<span class='kw'>end</span>
|
2170
2170
|
|
2171
2171
|
<span class='comment'># :nodoc:
|
@@ -2188,7 +2188,7 @@
|
|
2188
2188
|
<div class="method_details ">
|
2189
2189
|
<h3 class="signature " id="long-instance_method">
|
2190
2190
|
|
2191
|
-
|
2191
|
+
#<strong>long</strong> ⇒ <tt>String</tt>
|
2192
2192
|
|
2193
2193
|
|
2194
2194
|
|
@@ -2435,7 +2435,7 @@
|
|
2435
2435
|
<td>
|
2436
2436
|
<pre class="code"><span class="info file"># File 'lib/bovem/option.rb', line 41</span>
|
2437
2437
|
|
2438
|
-
<span class='kw'>class</span> <span class='const'>Option</span>
|
2438
|
+
<span class='kw'>class</span> <span class='const'><span class='object_link'><a href="" title="Bovem::Option (class)">Option</a></span></span>
|
2439
2439
|
<span class='id identifier rubyid_attr_accessor'>attr_accessor</span> <span class='symbol'>:name</span>
|
2440
2440
|
<span class='id identifier rubyid_attr_accessor'>attr_accessor</span> <span class='symbol'>:short</span>
|
2441
2441
|
<span class='id identifier rubyid_attr_accessor'>attr_accessor</span> <span class='symbol'>:long</span>
|
@@ -2530,7 +2530,7 @@
|
|
2530
2530
|
</span> <span class='comment'>#
|
2531
2531
|
</span> <span class='comment'># @return [Object] The default value for this option.
|
2532
2532
|
</span> <span class='kw'>def</span> <span class='id identifier rubyid_default'>default</span>
|
2533
|
-
<span class='ivar'>@default</span> <span class='op'>||</span> <span class='const'>Bovem</span><span class='op'>::</span><span class='const'>OPTION_TYPES</span><span class='lbracket'>[</span><span class='ivar'>@type</span><span class='rbracket'>]</span> <span class='op'>||</span> <span class='kw'>false</span>
|
2533
|
+
<span class='ivar'>@default</span> <span class='op'>||</span> <span class='const'><span class='object_link'><a href="../Bovem.html" title="Bovem (module)">Bovem</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../Bovem.html#OPTION_TYPES-constant" title="Bovem::OPTION_TYPES (constant)">OPTION_TYPES</a></span></span><span class='lbracket'>[</span><span class='ivar'>@type</span><span class='rbracket'>]</span> <span class='op'>||</span> <span class='kw'>false</span>
|
2534
2534
|
<span class='kw'>end</span>
|
2535
2535
|
|
2536
2536
|
<span class='comment'># Check if the current option has a default value.
|
@@ -2623,10 +2623,10 @@
|
|
2623
2623
|
<span class='kw'>case</span> <span class='id identifier rubyid_vs'>vs</span>
|
2624
2624
|
<span class='kw'>when</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>match</span><span class='tstring_end'>"</span></span> <span class='kw'>then</span> <span class='id identifier rubyid_locale'>locale</span><span class='period'>.</span><span class='id identifier rubyid_invalid_for_regexp'>invalid_for_regexp</span><span class='lparen'>(</span><span class='id identifier rubyid_label'>label</span><span class='comma'>,</span> <span class='ivar'>@validator</span><span class='period'>.</span><span class='id identifier rubyid_inspect'>inspect</span><span class='rparen'>)</span>
|
2625
2625
|
<span class='kw'>when</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>call</span><span class='tstring_end'>"</span></span> <span class='kw'>then</span> <span class='id identifier rubyid_locale'>locale</span><span class='period'>.</span><span class='id identifier rubyid_invalid_for_proc'>invalid_for_proc</span><span class='lparen'>(</span><span class='id identifier rubyid_label'>label</span><span class='rparen'>)</span>
|
2626
|
-
<span class='kw'>else</span> <span class='id identifier rubyid_locale'>locale</span><span class='period'>.</span><span class='id identifier rubyid_invalid_value'>invalid_value</span><span class='lparen'>(</span><span class='id identifier rubyid_label'>label</span><span class='comma'>,</span> <span class='const'>Bovem</span><span class='op'>::</span><span class='const'>Parser</span><span class='period'>.</span><span class='id identifier rubyid_smart_join'>smart_join</span><span class='lparen'>(</span><span class='ivar'>@validator</span><span class='period'>.</span><span class='id identifier rubyid_ensure_array'>ensure_array</span><span class='comma'>,</span> <span class='label'>separator:</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>, </span><span class='tstring_end'>"</span></span><span class='comma'>,</span> <span class='label'>last_separator:</span> <span class='id identifier rubyid_locale'>locale</span><span class='period'>.</span><span class='id identifier rubyid_join_separator'>join_separator</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_html_safe'>html_safe</span><span class='rparen'>)</span>
|
2626
|
+
<span class='kw'>else</span> <span class='id identifier rubyid_locale'>locale</span><span class='period'>.</span><span class='id identifier rubyid_invalid_value'>invalid_value</span><span class='lparen'>(</span><span class='id identifier rubyid_label'>label</span><span class='comma'>,</span> <span class='const'><span class='object_link'><a href="../Bovem.html" title="Bovem (module)">Bovem</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Parser.html" title="Bovem::Parser (class)">Parser</a></span></span><span class='period'>.</span><span class='id identifier rubyid_smart_join'>smart_join</span><span class='lparen'>(</span><span class='ivar'>@validator</span><span class='period'>.</span><span class='id identifier rubyid_ensure_array'>ensure_array</span><span class='comma'>,</span> <span class='label'>separator:</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>, </span><span class='tstring_end'>"</span></span><span class='comma'>,</span> <span class='label'>last_separator:</span> <span class='id identifier rubyid_locale'>locale</span><span class='period'>.</span><span class='id identifier rubyid_join_separator'>join_separator</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_html_safe'>html_safe</span><span class='rparen'>)</span>
|
2627
2627
|
<span class='kw'>end</span>
|
2628
2628
|
|
2629
|
-
<span class='id identifier rubyid_raise'>raise</span> <span class='const'>Bovem</span><span class='op'>::</span><span class='const'>Errors</span><span class='op'>::</span><span class='const'>Error</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='kw'>self</span><span class='comma'>,</span> <span class='symbol'>:validation_failed</span><span class='comma'>,</span> <span class='id identifier rubyid_message'>message</span><span class='rparen'>)</span>
|
2629
|
+
<span class='id identifier rubyid_raise'>raise</span> <span class='const'><span class='object_link'><a href="../Bovem.html" title="Bovem (module)">Bovem</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Errors.html" title="Bovem::Errors (module)">Errors</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Errors/Error.html" title="Bovem::Errors::Error (class)">Error</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="Errors/Error.html#initialize-instance_method" title="Bovem::Errors::Error#initialize (method)">new</a></span></span><span class='lparen'>(</span><span class='kw'>self</span><span class='comma'>,</span> <span class='symbol'>:validation_failed</span><span class='comma'>,</span> <span class='id identifier rubyid_message'>message</span><span class='rparen'>)</span>
|
2630
2630
|
<span class='kw'>end</span>
|
2631
2631
|
|
2632
2632
|
<span class='comment'># :nodoc:
|
@@ -2649,7 +2649,7 @@
|
|
2649
2649
|
<div class="method_details ">
|
2650
2650
|
<h3 class="signature " id="meta-instance_method">
|
2651
2651
|
|
2652
|
-
|
2652
|
+
#<strong>meta</strong> ⇒ <tt>String|NilClass</tt>
|
2653
2653
|
|
2654
2654
|
|
2655
2655
|
|
@@ -2897,7 +2897,7 @@ if this option doesn’t require a meta argument.</p>
|
|
2897
2897
|
<td>
|
2898
2898
|
<pre class="code"><span class="info file"># File 'lib/bovem/option.rb', line 41</span>
|
2899
2899
|
|
2900
|
-
<span class='kw'>class</span> <span class='const'>Option</span>
|
2900
|
+
<span class='kw'>class</span> <span class='const'><span class='object_link'><a href="" title="Bovem::Option (class)">Option</a></span></span>
|
2901
2901
|
<span class='id identifier rubyid_attr_accessor'>attr_accessor</span> <span class='symbol'>:name</span>
|
2902
2902
|
<span class='id identifier rubyid_attr_accessor'>attr_accessor</span> <span class='symbol'>:short</span>
|
2903
2903
|
<span class='id identifier rubyid_attr_accessor'>attr_accessor</span> <span class='symbol'>:long</span>
|
@@ -2992,7 +2992,7 @@ if this option doesn’t require a meta argument.</p>
|
|
2992
2992
|
</span> <span class='comment'>#
|
2993
2993
|
</span> <span class='comment'># @return [Object] The default value for this option.
|
2994
2994
|
</span> <span class='kw'>def</span> <span class='id identifier rubyid_default'>default</span>
|
2995
|
-
<span class='ivar'>@default</span> <span class='op'>||</span> <span class='const'>Bovem</span><span class='op'>::</span><span class='const'>OPTION_TYPES</span><span class='lbracket'>[</span><span class='ivar'>@type</span><span class='rbracket'>]</span> <span class='op'>||</span> <span class='kw'>false</span>
|
2995
|
+
<span class='ivar'>@default</span> <span class='op'>||</span> <span class='const'><span class='object_link'><a href="../Bovem.html" title="Bovem (module)">Bovem</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../Bovem.html#OPTION_TYPES-constant" title="Bovem::OPTION_TYPES (constant)">OPTION_TYPES</a></span></span><span class='lbracket'>[</span><span class='ivar'>@type</span><span class='rbracket'>]</span> <span class='op'>||</span> <span class='kw'>false</span>
|
2996
2996
|
<span class='kw'>end</span>
|
2997
2997
|
|
2998
2998
|
<span class='comment'># Check if the current option has a default value.
|
@@ -3085,10 +3085,10 @@ if this option doesn’t require a meta argument.</p>
|
|
3085
3085
|
<span class='kw'>case</span> <span class='id identifier rubyid_vs'>vs</span>
|
3086
3086
|
<span class='kw'>when</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>match</span><span class='tstring_end'>"</span></span> <span class='kw'>then</span> <span class='id identifier rubyid_locale'>locale</span><span class='period'>.</span><span class='id identifier rubyid_invalid_for_regexp'>invalid_for_regexp</span><span class='lparen'>(</span><span class='id identifier rubyid_label'>label</span><span class='comma'>,</span> <span class='ivar'>@validator</span><span class='period'>.</span><span class='id identifier rubyid_inspect'>inspect</span><span class='rparen'>)</span>
|
3087
3087
|
<span class='kw'>when</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>call</span><span class='tstring_end'>"</span></span> <span class='kw'>then</span> <span class='id identifier rubyid_locale'>locale</span><span class='period'>.</span><span class='id identifier rubyid_invalid_for_proc'>invalid_for_proc</span><span class='lparen'>(</span><span class='id identifier rubyid_label'>label</span><span class='rparen'>)</span>
|
3088
|
-
<span class='kw'>else</span> <span class='id identifier rubyid_locale'>locale</span><span class='period'>.</span><span class='id identifier rubyid_invalid_value'>invalid_value</span><span class='lparen'>(</span><span class='id identifier rubyid_label'>label</span><span class='comma'>,</span> <span class='const'>Bovem</span><span class='op'>::</span><span class='const'>Parser</span><span class='period'>.</span><span class='id identifier rubyid_smart_join'>smart_join</span><span class='lparen'>(</span><span class='ivar'>@validator</span><span class='period'>.</span><span class='id identifier rubyid_ensure_array'>ensure_array</span><span class='comma'>,</span> <span class='label'>separator:</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>, </span><span class='tstring_end'>"</span></span><span class='comma'>,</span> <span class='label'>last_separator:</span> <span class='id identifier rubyid_locale'>locale</span><span class='period'>.</span><span class='id identifier rubyid_join_separator'>join_separator</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_html_safe'>html_safe</span><span class='rparen'>)</span>
|
3088
|
+
<span class='kw'>else</span> <span class='id identifier rubyid_locale'>locale</span><span class='period'>.</span><span class='id identifier rubyid_invalid_value'>invalid_value</span><span class='lparen'>(</span><span class='id identifier rubyid_label'>label</span><span class='comma'>,</span> <span class='const'><span class='object_link'><a href="../Bovem.html" title="Bovem (module)">Bovem</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Parser.html" title="Bovem::Parser (class)">Parser</a></span></span><span class='period'>.</span><span class='id identifier rubyid_smart_join'>smart_join</span><span class='lparen'>(</span><span class='ivar'>@validator</span><span class='period'>.</span><span class='id identifier rubyid_ensure_array'>ensure_array</span><span class='comma'>,</span> <span class='label'>separator:</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>, </span><span class='tstring_end'>"</span></span><span class='comma'>,</span> <span class='label'>last_separator:</span> <span class='id identifier rubyid_locale'>locale</span><span class='period'>.</span><span class='id identifier rubyid_join_separator'>join_separator</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_html_safe'>html_safe</span><span class='rparen'>)</span>
|
3089
3089
|
<span class='kw'>end</span>
|
3090
3090
|
|
3091
|
-
<span class='id identifier rubyid_raise'>raise</span> <span class='const'>Bovem</span><span class='op'>::</span><span class='const'>Errors</span><span class='op'>::</span><span class='const'>Error</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='kw'>self</span><span class='comma'>,</span> <span class='symbol'>:validation_failed</span><span class='comma'>,</span> <span class='id identifier rubyid_message'>message</span><span class='rparen'>)</span>
|
3091
|
+
<span class='id identifier rubyid_raise'>raise</span> <span class='const'><span class='object_link'><a href="../Bovem.html" title="Bovem (module)">Bovem</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Errors.html" title="Bovem::Errors (module)">Errors</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Errors/Error.html" title="Bovem::Errors::Error (class)">Error</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="Errors/Error.html#initialize-instance_method" title="Bovem::Errors::Error#initialize (method)">new</a></span></span><span class='lparen'>(</span><span class='kw'>self</span><span class='comma'>,</span> <span class='symbol'>:validation_failed</span><span class='comma'>,</span> <span class='id identifier rubyid_message'>message</span><span class='rparen'>)</span>
|
3092
3092
|
<span class='kw'>end</span>
|
3093
3093
|
|
3094
3094
|
<span class='comment'># :nodoc:
|
@@ -3111,7 +3111,7 @@ if this option doesn’t require a meta argument.</p>
|
|
3111
3111
|
<div class="method_details ">
|
3112
3112
|
<h3 class="signature " id="name-instance_method">
|
3113
3113
|
|
3114
|
-
|
3114
|
+
#<strong>name</strong> ⇒ <tt>String</tt>
|
3115
3115
|
|
3116
3116
|
|
3117
3117
|
|
@@ -3358,7 +3358,7 @@ if this option doesn’t require a meta argument.</p>
|
|
3358
3358
|
<td>
|
3359
3359
|
<pre class="code"><span class="info file"># File 'lib/bovem/option.rb', line 41</span>
|
3360
3360
|
|
3361
|
-
<span class='kw'>class</span> <span class='const'>Option</span>
|
3361
|
+
<span class='kw'>class</span> <span class='const'><span class='object_link'><a href="" title="Bovem::Option (class)">Option</a></span></span>
|
3362
3362
|
<span class='id identifier rubyid_attr_accessor'>attr_accessor</span> <span class='symbol'>:name</span>
|
3363
3363
|
<span class='id identifier rubyid_attr_accessor'>attr_accessor</span> <span class='symbol'>:short</span>
|
3364
3364
|
<span class='id identifier rubyid_attr_accessor'>attr_accessor</span> <span class='symbol'>:long</span>
|
@@ -3453,7 +3453,7 @@ if this option doesn’t require a meta argument.</p>
|
|
3453
3453
|
</span> <span class='comment'>#
|
3454
3454
|
</span> <span class='comment'># @return [Object] The default value for this option.
|
3455
3455
|
</span> <span class='kw'>def</span> <span class='id identifier rubyid_default'>default</span>
|
3456
|
-
<span class='ivar'>@default</span> <span class='op'>||</span> <span class='const'>Bovem</span><span class='op'>::</span><span class='const'>OPTION_TYPES</span><span class='lbracket'>[</span><span class='ivar'>@type</span><span class='rbracket'>]</span> <span class='op'>||</span> <span class='kw'>false</span>
|
3456
|
+
<span class='ivar'>@default</span> <span class='op'>||</span> <span class='const'><span class='object_link'><a href="../Bovem.html" title="Bovem (module)">Bovem</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../Bovem.html#OPTION_TYPES-constant" title="Bovem::OPTION_TYPES (constant)">OPTION_TYPES</a></span></span><span class='lbracket'>[</span><span class='ivar'>@type</span><span class='rbracket'>]</span> <span class='op'>||</span> <span class='kw'>false</span>
|
3457
3457
|
<span class='kw'>end</span>
|
3458
3458
|
|
3459
3459
|
<span class='comment'># Check if the current option has a default value.
|
@@ -3546,10 +3546,10 @@ if this option doesn’t require a meta argument.</p>
|
|
3546
3546
|
<span class='kw'>case</span> <span class='id identifier rubyid_vs'>vs</span>
|
3547
3547
|
<span class='kw'>when</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>match</span><span class='tstring_end'>"</span></span> <span class='kw'>then</span> <span class='id identifier rubyid_locale'>locale</span><span class='period'>.</span><span class='id identifier rubyid_invalid_for_regexp'>invalid_for_regexp</span><span class='lparen'>(</span><span class='id identifier rubyid_label'>label</span><span class='comma'>,</span> <span class='ivar'>@validator</span><span class='period'>.</span><span class='id identifier rubyid_inspect'>inspect</span><span class='rparen'>)</span>
|
3548
3548
|
<span class='kw'>when</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>call</span><span class='tstring_end'>"</span></span> <span class='kw'>then</span> <span class='id identifier rubyid_locale'>locale</span><span class='period'>.</span><span class='id identifier rubyid_invalid_for_proc'>invalid_for_proc</span><span class='lparen'>(</span><span class='id identifier rubyid_label'>label</span><span class='rparen'>)</span>
|
3549
|
-
<span class='kw'>else</span> <span class='id identifier rubyid_locale'>locale</span><span class='period'>.</span><span class='id identifier rubyid_invalid_value'>invalid_value</span><span class='lparen'>(</span><span class='id identifier rubyid_label'>label</span><span class='comma'>,</span> <span class='const'>Bovem</span><span class='op'>::</span><span class='const'>Parser</span><span class='period'>.</span><span class='id identifier rubyid_smart_join'>smart_join</span><span class='lparen'>(</span><span class='ivar'>@validator</span><span class='period'>.</span><span class='id identifier rubyid_ensure_array'>ensure_array</span><span class='comma'>,</span> <span class='label'>separator:</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>, </span><span class='tstring_end'>"</span></span><span class='comma'>,</span> <span class='label'>last_separator:</span> <span class='id identifier rubyid_locale'>locale</span><span class='period'>.</span><span class='id identifier rubyid_join_separator'>join_separator</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_html_safe'>html_safe</span><span class='rparen'>)</span>
|
3549
|
+
<span class='kw'>else</span> <span class='id identifier rubyid_locale'>locale</span><span class='period'>.</span><span class='id identifier rubyid_invalid_value'>invalid_value</span><span class='lparen'>(</span><span class='id identifier rubyid_label'>label</span><span class='comma'>,</span> <span class='const'><span class='object_link'><a href="../Bovem.html" title="Bovem (module)">Bovem</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Parser.html" title="Bovem::Parser (class)">Parser</a></span></span><span class='period'>.</span><span class='id identifier rubyid_smart_join'>smart_join</span><span class='lparen'>(</span><span class='ivar'>@validator</span><span class='period'>.</span><span class='id identifier rubyid_ensure_array'>ensure_array</span><span class='comma'>,</span> <span class='label'>separator:</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>, </span><span class='tstring_end'>"</span></span><span class='comma'>,</span> <span class='label'>last_separator:</span> <span class='id identifier rubyid_locale'>locale</span><span class='period'>.</span><span class='id identifier rubyid_join_separator'>join_separator</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_html_safe'>html_safe</span><span class='rparen'>)</span>
|
3550
3550
|
<span class='kw'>end</span>
|
3551
3551
|
|
3552
|
-
<span class='id identifier rubyid_raise'>raise</span> <span class='const'>Bovem</span><span class='op'>::</span><span class='const'>Errors</span><span class='op'>::</span><span class='const'>Error</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='kw'>self</span><span class='comma'>,</span> <span class='symbol'>:validation_failed</span><span class='comma'>,</span> <span class='id identifier rubyid_message'>message</span><span class='rparen'>)</span>
|
3552
|
+
<span class='id identifier rubyid_raise'>raise</span> <span class='const'><span class='object_link'><a href="../Bovem.html" title="Bovem (module)">Bovem</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Errors.html" title="Bovem::Errors (module)">Errors</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Errors/Error.html" title="Bovem::Errors::Error (class)">Error</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="Errors/Error.html#initialize-instance_method" title="Bovem::Errors::Error#initialize (method)">new</a></span></span><span class='lparen'>(</span><span class='kw'>self</span><span class='comma'>,</span> <span class='symbol'>:validation_failed</span><span class='comma'>,</span> <span class='id identifier rubyid_message'>message</span><span class='rparen'>)</span>
|
3553
3553
|
<span class='kw'>end</span>
|
3554
3554
|
|
3555
3555
|
<span class='comment'># :nodoc:
|
@@ -3572,7 +3572,7 @@ if this option doesn’t require a meta argument.</p>
|
|
3572
3572
|
<div class="method_details ">
|
3573
3573
|
<h3 class="signature " id="parent-instance_method">
|
3574
3574
|
|
3575
|
-
|
3575
|
+
#<strong>parent</strong> ⇒ <tt><span class='object_link'><a href="Command.html" title="Bovem::Command (class)">Command</a></span></tt>
|
3576
3576
|
|
3577
3577
|
|
3578
3578
|
|
@@ -3819,7 +3819,7 @@ if this option doesn’t require a meta argument.</p>
|
|
3819
3819
|
<td>
|
3820
3820
|
<pre class="code"><span class="info file"># File 'lib/bovem/option.rb', line 41</span>
|
3821
3821
|
|
3822
|
-
<span class='kw'>class</span> <span class='const'>Option</span>
|
3822
|
+
<span class='kw'>class</span> <span class='const'><span class='object_link'><a href="" title="Bovem::Option (class)">Option</a></span></span>
|
3823
3823
|
<span class='id identifier rubyid_attr_accessor'>attr_accessor</span> <span class='symbol'>:name</span>
|
3824
3824
|
<span class='id identifier rubyid_attr_accessor'>attr_accessor</span> <span class='symbol'>:short</span>
|
3825
3825
|
<span class='id identifier rubyid_attr_accessor'>attr_accessor</span> <span class='symbol'>:long</span>
|
@@ -3914,7 +3914,7 @@ if this option doesn’t require a meta argument.</p>
|
|
3914
3914
|
</span> <span class='comment'>#
|
3915
3915
|
</span> <span class='comment'># @return [Object] The default value for this option.
|
3916
3916
|
</span> <span class='kw'>def</span> <span class='id identifier rubyid_default'>default</span>
|
3917
|
-
<span class='ivar'>@default</span> <span class='op'>||</span> <span class='const'>Bovem</span><span class='op'>::</span><span class='const'>OPTION_TYPES</span><span class='lbracket'>[</span><span class='ivar'>@type</span><span class='rbracket'>]</span> <span class='op'>||</span> <span class='kw'>false</span>
|
3917
|
+
<span class='ivar'>@default</span> <span class='op'>||</span> <span class='const'><span class='object_link'><a href="../Bovem.html" title="Bovem (module)">Bovem</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../Bovem.html#OPTION_TYPES-constant" title="Bovem::OPTION_TYPES (constant)">OPTION_TYPES</a></span></span><span class='lbracket'>[</span><span class='ivar'>@type</span><span class='rbracket'>]</span> <span class='op'>||</span> <span class='kw'>false</span>
|
3918
3918
|
<span class='kw'>end</span>
|
3919
3919
|
|
3920
3920
|
<span class='comment'># Check if the current option has a default value.
|
@@ -4007,10 +4007,10 @@ if this option doesn’t require a meta argument.</p>
|
|
4007
4007
|
<span class='kw'>case</span> <span class='id identifier rubyid_vs'>vs</span>
|
4008
4008
|
<span class='kw'>when</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>match</span><span class='tstring_end'>"</span></span> <span class='kw'>then</span> <span class='id identifier rubyid_locale'>locale</span><span class='period'>.</span><span class='id identifier rubyid_invalid_for_regexp'>invalid_for_regexp</span><span class='lparen'>(</span><span class='id identifier rubyid_label'>label</span><span class='comma'>,</span> <span class='ivar'>@validator</span><span class='period'>.</span><span class='id identifier rubyid_inspect'>inspect</span><span class='rparen'>)</span>
|
4009
4009
|
<span class='kw'>when</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>call</span><span class='tstring_end'>"</span></span> <span class='kw'>then</span> <span class='id identifier rubyid_locale'>locale</span><span class='period'>.</span><span class='id identifier rubyid_invalid_for_proc'>invalid_for_proc</span><span class='lparen'>(</span><span class='id identifier rubyid_label'>label</span><span class='rparen'>)</span>
|
4010
|
-
<span class='kw'>else</span> <span class='id identifier rubyid_locale'>locale</span><span class='period'>.</span><span class='id identifier rubyid_invalid_value'>invalid_value</span><span class='lparen'>(</span><span class='id identifier rubyid_label'>label</span><span class='comma'>,</span> <span class='const'>Bovem</span><span class='op'>::</span><span class='const'>Parser</span><span class='period'>.</span><span class='id identifier rubyid_smart_join'>smart_join</span><span class='lparen'>(</span><span class='ivar'>@validator</span><span class='period'>.</span><span class='id identifier rubyid_ensure_array'>ensure_array</span><span class='comma'>,</span> <span class='label'>separator:</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>, </span><span class='tstring_end'>"</span></span><span class='comma'>,</span> <span class='label'>last_separator:</span> <span class='id identifier rubyid_locale'>locale</span><span class='period'>.</span><span class='id identifier rubyid_join_separator'>join_separator</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_html_safe'>html_safe</span><span class='rparen'>)</span>
|
4010
|
+
<span class='kw'>else</span> <span class='id identifier rubyid_locale'>locale</span><span class='period'>.</span><span class='id identifier rubyid_invalid_value'>invalid_value</span><span class='lparen'>(</span><span class='id identifier rubyid_label'>label</span><span class='comma'>,</span> <span class='const'><span class='object_link'><a href="../Bovem.html" title="Bovem (module)">Bovem</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Parser.html" title="Bovem::Parser (class)">Parser</a></span></span><span class='period'>.</span><span class='id identifier rubyid_smart_join'>smart_join</span><span class='lparen'>(</span><span class='ivar'>@validator</span><span class='period'>.</span><span class='id identifier rubyid_ensure_array'>ensure_array</span><span class='comma'>,</span> <span class='label'>separator:</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>, </span><span class='tstring_end'>"</span></span><span class='comma'>,</span> <span class='label'>last_separator:</span> <span class='id identifier rubyid_locale'>locale</span><span class='period'>.</span><span class='id identifier rubyid_join_separator'>join_separator</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_html_safe'>html_safe</span><span class='rparen'>)</span>
|
4011
4011
|
<span class='kw'>end</span>
|
4012
4012
|
|
4013
|
-
<span class='id identifier rubyid_raise'>raise</span> <span class='const'>Bovem</span><span class='op'>::</span><span class='const'>Errors</span><span class='op'>::</span><span class='const'>Error</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='kw'>self</span><span class='comma'>,</span> <span class='symbol'>:validation_failed</span><span class='comma'>,</span> <span class='id identifier rubyid_message'>message</span><span class='rparen'>)</span>
|
4013
|
+
<span class='id identifier rubyid_raise'>raise</span> <span class='const'><span class='object_link'><a href="../Bovem.html" title="Bovem (module)">Bovem</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Errors.html" title="Bovem::Errors (module)">Errors</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Errors/Error.html" title="Bovem::Errors::Error (class)">Error</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="Errors/Error.html#initialize-instance_method" title="Bovem::Errors::Error#initialize (method)">new</a></span></span><span class='lparen'>(</span><span class='kw'>self</span><span class='comma'>,</span> <span class='symbol'>:validation_failed</span><span class='comma'>,</span> <span class='id identifier rubyid_message'>message</span><span class='rparen'>)</span>
|
4014
4014
|
<span class='kw'>end</span>
|
4015
4015
|
|
4016
4016
|
<span class='comment'># :nodoc:
|
@@ -4033,7 +4033,7 @@ if this option doesn’t require a meta argument.</p>
|
|
4033
4033
|
<div class="method_details ">
|
4034
4034
|
<h3 class="signature " id="required-instance_method">
|
4035
4035
|
|
4036
|
-
|
4036
|
+
#<strong>required</strong> ⇒ <tt>Boolean</tt>
|
4037
4037
|
|
4038
4038
|
|
4039
4039
|
|
@@ -4280,7 +4280,7 @@ if this option doesn’t require a meta argument.</p>
|
|
4280
4280
|
<td>
|
4281
4281
|
<pre class="code"><span class="info file"># File 'lib/bovem/option.rb', line 41</span>
|
4282
4282
|
|
4283
|
-
<span class='kw'>class</span> <span class='const'>Option</span>
|
4283
|
+
<span class='kw'>class</span> <span class='const'><span class='object_link'><a href="" title="Bovem::Option (class)">Option</a></span></span>
|
4284
4284
|
<span class='id identifier rubyid_attr_accessor'>attr_accessor</span> <span class='symbol'>:name</span>
|
4285
4285
|
<span class='id identifier rubyid_attr_accessor'>attr_accessor</span> <span class='symbol'>:short</span>
|
4286
4286
|
<span class='id identifier rubyid_attr_accessor'>attr_accessor</span> <span class='symbol'>:long</span>
|
@@ -4375,7 +4375,7 @@ if this option doesn’t require a meta argument.</p>
|
|
4375
4375
|
</span> <span class='comment'>#
|
4376
4376
|
</span> <span class='comment'># @return [Object] The default value for this option.
|
4377
4377
|
</span> <span class='kw'>def</span> <span class='id identifier rubyid_default'>default</span>
|
4378
|
-
<span class='ivar'>@default</span> <span class='op'>||</span> <span class='const'>Bovem</span><span class='op'>::</span><span class='const'>OPTION_TYPES</span><span class='lbracket'>[</span><span class='ivar'>@type</span><span class='rbracket'>]</span> <span class='op'>||</span> <span class='kw'>false</span>
|
4378
|
+
<span class='ivar'>@default</span> <span class='op'>||</span> <span class='const'><span class='object_link'><a href="../Bovem.html" title="Bovem (module)">Bovem</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../Bovem.html#OPTION_TYPES-constant" title="Bovem::OPTION_TYPES (constant)">OPTION_TYPES</a></span></span><span class='lbracket'>[</span><span class='ivar'>@type</span><span class='rbracket'>]</span> <span class='op'>||</span> <span class='kw'>false</span>
|
4379
4379
|
<span class='kw'>end</span>
|
4380
4380
|
|
4381
4381
|
<span class='comment'># Check if the current option has a default value.
|
@@ -4468,10 +4468,10 @@ if this option doesn’t require a meta argument.</p>
|
|
4468
4468
|
<span class='kw'>case</span> <span class='id identifier rubyid_vs'>vs</span>
|
4469
4469
|
<span class='kw'>when</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>match</span><span class='tstring_end'>"</span></span> <span class='kw'>then</span> <span class='id identifier rubyid_locale'>locale</span><span class='period'>.</span><span class='id identifier rubyid_invalid_for_regexp'>invalid_for_regexp</span><span class='lparen'>(</span><span class='id identifier rubyid_label'>label</span><span class='comma'>,</span> <span class='ivar'>@validator</span><span class='period'>.</span><span class='id identifier rubyid_inspect'>inspect</span><span class='rparen'>)</span>
|
4470
4470
|
<span class='kw'>when</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>call</span><span class='tstring_end'>"</span></span> <span class='kw'>then</span> <span class='id identifier rubyid_locale'>locale</span><span class='period'>.</span><span class='id identifier rubyid_invalid_for_proc'>invalid_for_proc</span><span class='lparen'>(</span><span class='id identifier rubyid_label'>label</span><span class='rparen'>)</span>
|
4471
|
-
<span class='kw'>else</span> <span class='id identifier rubyid_locale'>locale</span><span class='period'>.</span><span class='id identifier rubyid_invalid_value'>invalid_value</span><span class='lparen'>(</span><span class='id identifier rubyid_label'>label</span><span class='comma'>,</span> <span class='const'>Bovem</span><span class='op'>::</span><span class='const'>Parser</span><span class='period'>.</span><span class='id identifier rubyid_smart_join'>smart_join</span><span class='lparen'>(</span><span class='ivar'>@validator</span><span class='period'>.</span><span class='id identifier rubyid_ensure_array'>ensure_array</span><span class='comma'>,</span> <span class='label'>separator:</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>, </span><span class='tstring_end'>"</span></span><span class='comma'>,</span> <span class='label'>last_separator:</span> <span class='id identifier rubyid_locale'>locale</span><span class='period'>.</span><span class='id identifier rubyid_join_separator'>join_separator</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_html_safe'>html_safe</span><span class='rparen'>)</span>
|
4471
|
+
<span class='kw'>else</span> <span class='id identifier rubyid_locale'>locale</span><span class='period'>.</span><span class='id identifier rubyid_invalid_value'>invalid_value</span><span class='lparen'>(</span><span class='id identifier rubyid_label'>label</span><span class='comma'>,</span> <span class='const'><span class='object_link'><a href="../Bovem.html" title="Bovem (module)">Bovem</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Parser.html" title="Bovem::Parser (class)">Parser</a></span></span><span class='period'>.</span><span class='id identifier rubyid_smart_join'>smart_join</span><span class='lparen'>(</span><span class='ivar'>@validator</span><span class='period'>.</span><span class='id identifier rubyid_ensure_array'>ensure_array</span><span class='comma'>,</span> <span class='label'>separator:</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>, </span><span class='tstring_end'>"</span></span><span class='comma'>,</span> <span class='label'>last_separator:</span> <span class='id identifier rubyid_locale'>locale</span><span class='period'>.</span><span class='id identifier rubyid_join_separator'>join_separator</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_html_safe'>html_safe</span><span class='rparen'>)</span>
|
4472
4472
|
<span class='kw'>end</span>
|
4473
4473
|
|
4474
|
-
<span class='id identifier rubyid_raise'>raise</span> <span class='const'>Bovem</span><span class='op'>::</span><span class='const'>Errors</span><span class='op'>::</span><span class='const'>Error</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='kw'>self</span><span class='comma'>,</span> <span class='symbol'>:validation_failed</span><span class='comma'>,</span> <span class='id identifier rubyid_message'>message</span><span class='rparen'>)</span>
|
4474
|
+
<span class='id identifier rubyid_raise'>raise</span> <span class='const'><span class='object_link'><a href="../Bovem.html" title="Bovem (module)">Bovem</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Errors.html" title="Bovem::Errors (module)">Errors</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Errors/Error.html" title="Bovem::Errors::Error (class)">Error</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="Errors/Error.html#initialize-instance_method" title="Bovem::Errors::Error#initialize (method)">new</a></span></span><span class='lparen'>(</span><span class='kw'>self</span><span class='comma'>,</span> <span class='symbol'>:validation_failed</span><span class='comma'>,</span> <span class='id identifier rubyid_message'>message</span><span class='rparen'>)</span>
|
4475
4475
|
<span class='kw'>end</span>
|
4476
4476
|
|
4477
4477
|
<span class='comment'># :nodoc:
|
@@ -4494,7 +4494,7 @@ if this option doesn’t require a meta argument.</p>
|
|
4494
4494
|
<div class="method_details ">
|
4495
4495
|
<h3 class="signature " id="short-instance_method">
|
4496
4496
|
|
4497
|
-
|
4497
|
+
#<strong>short</strong> ⇒ <tt>String</tt>
|
4498
4498
|
|
4499
4499
|
|
4500
4500
|
|
@@ -4741,7 +4741,7 @@ if this option doesn’t require a meta argument.</p>
|
|
4741
4741
|
<td>
|
4742
4742
|
<pre class="code"><span class="info file"># File 'lib/bovem/option.rb', line 41</span>
|
4743
4743
|
|
4744
|
-
<span class='kw'>class</span> <span class='const'>Option</span>
|
4744
|
+
<span class='kw'>class</span> <span class='const'><span class='object_link'><a href="" title="Bovem::Option (class)">Option</a></span></span>
|
4745
4745
|
<span class='id identifier rubyid_attr_accessor'>attr_accessor</span> <span class='symbol'>:name</span>
|
4746
4746
|
<span class='id identifier rubyid_attr_accessor'>attr_accessor</span> <span class='symbol'>:short</span>
|
4747
4747
|
<span class='id identifier rubyid_attr_accessor'>attr_accessor</span> <span class='symbol'>:long</span>
|
@@ -4836,7 +4836,7 @@ if this option doesn’t require a meta argument.</p>
|
|
4836
4836
|
</span> <span class='comment'>#
|
4837
4837
|
</span> <span class='comment'># @return [Object] The default value for this option.
|
4838
4838
|
</span> <span class='kw'>def</span> <span class='id identifier rubyid_default'>default</span>
|
4839
|
-
<span class='ivar'>@default</span> <span class='op'>||</span> <span class='const'>Bovem</span><span class='op'>::</span><span class='const'>OPTION_TYPES</span><span class='lbracket'>[</span><span class='ivar'>@type</span><span class='rbracket'>]</span> <span class='op'>||</span> <span class='kw'>false</span>
|
4839
|
+
<span class='ivar'>@default</span> <span class='op'>||</span> <span class='const'><span class='object_link'><a href="../Bovem.html" title="Bovem (module)">Bovem</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../Bovem.html#OPTION_TYPES-constant" title="Bovem::OPTION_TYPES (constant)">OPTION_TYPES</a></span></span><span class='lbracket'>[</span><span class='ivar'>@type</span><span class='rbracket'>]</span> <span class='op'>||</span> <span class='kw'>false</span>
|
4840
4840
|
<span class='kw'>end</span>
|
4841
4841
|
|
4842
4842
|
<span class='comment'># Check if the current option has a default value.
|
@@ -4929,10 +4929,10 @@ if this option doesn’t require a meta argument.</p>
|
|
4929
4929
|
<span class='kw'>case</span> <span class='id identifier rubyid_vs'>vs</span>
|
4930
4930
|
<span class='kw'>when</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>match</span><span class='tstring_end'>"</span></span> <span class='kw'>then</span> <span class='id identifier rubyid_locale'>locale</span><span class='period'>.</span><span class='id identifier rubyid_invalid_for_regexp'>invalid_for_regexp</span><span class='lparen'>(</span><span class='id identifier rubyid_label'>label</span><span class='comma'>,</span> <span class='ivar'>@validator</span><span class='period'>.</span><span class='id identifier rubyid_inspect'>inspect</span><span class='rparen'>)</span>
|
4931
4931
|
<span class='kw'>when</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>call</span><span class='tstring_end'>"</span></span> <span class='kw'>then</span> <span class='id identifier rubyid_locale'>locale</span><span class='period'>.</span><span class='id identifier rubyid_invalid_for_proc'>invalid_for_proc</span><span class='lparen'>(</span><span class='id identifier rubyid_label'>label</span><span class='rparen'>)</span>
|
4932
|
-
<span class='kw'>else</span> <span class='id identifier rubyid_locale'>locale</span><span class='period'>.</span><span class='id identifier rubyid_invalid_value'>invalid_value</span><span class='lparen'>(</span><span class='id identifier rubyid_label'>label</span><span class='comma'>,</span> <span class='const'>Bovem</span><span class='op'>::</span><span class='const'>Parser</span><span class='period'>.</span><span class='id identifier rubyid_smart_join'>smart_join</span><span class='lparen'>(</span><span class='ivar'>@validator</span><span class='period'>.</span><span class='id identifier rubyid_ensure_array'>ensure_array</span><span class='comma'>,</span> <span class='label'>separator:</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>, </span><span class='tstring_end'>"</span></span><span class='comma'>,</span> <span class='label'>last_separator:</span> <span class='id identifier rubyid_locale'>locale</span><span class='period'>.</span><span class='id identifier rubyid_join_separator'>join_separator</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_html_safe'>html_safe</span><span class='rparen'>)</span>
|
4932
|
+
<span class='kw'>else</span> <span class='id identifier rubyid_locale'>locale</span><span class='period'>.</span><span class='id identifier rubyid_invalid_value'>invalid_value</span><span class='lparen'>(</span><span class='id identifier rubyid_label'>label</span><span class='comma'>,</span> <span class='const'><span class='object_link'><a href="../Bovem.html" title="Bovem (module)">Bovem</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Parser.html" title="Bovem::Parser (class)">Parser</a></span></span><span class='period'>.</span><span class='id identifier rubyid_smart_join'>smart_join</span><span class='lparen'>(</span><span class='ivar'>@validator</span><span class='period'>.</span><span class='id identifier rubyid_ensure_array'>ensure_array</span><span class='comma'>,</span> <span class='label'>separator:</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>, </span><span class='tstring_end'>"</span></span><span class='comma'>,</span> <span class='label'>last_separator:</span> <span class='id identifier rubyid_locale'>locale</span><span class='period'>.</span><span class='id identifier rubyid_join_separator'>join_separator</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_html_safe'>html_safe</span><span class='rparen'>)</span>
|
4933
4933
|
<span class='kw'>end</span>
|
4934
4934
|
|
4935
|
-
<span class='id identifier rubyid_raise'>raise</span> <span class='const'>Bovem</span><span class='op'>::</span><span class='const'>Errors</span><span class='op'>::</span><span class='const'>Error</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='kw'>self</span><span class='comma'>,</span> <span class='symbol'>:validation_failed</span><span class='comma'>,</span> <span class='id identifier rubyid_message'>message</span><span class='rparen'>)</span>
|
4935
|
+
<span class='id identifier rubyid_raise'>raise</span> <span class='const'><span class='object_link'><a href="../Bovem.html" title="Bovem (module)">Bovem</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Errors.html" title="Bovem::Errors (module)">Errors</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Errors/Error.html" title="Bovem::Errors::Error (class)">Error</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="Errors/Error.html#initialize-instance_method" title="Bovem::Errors::Error#initialize (method)">new</a></span></span><span class='lparen'>(</span><span class='kw'>self</span><span class='comma'>,</span> <span class='symbol'>:validation_failed</span><span class='comma'>,</span> <span class='id identifier rubyid_message'>message</span><span class='rparen'>)</span>
|
4936
4936
|
<span class='kw'>end</span>
|
4937
4937
|
|
4938
4938
|
<span class='comment'># :nodoc:
|
@@ -4955,7 +4955,7 @@ if this option doesn’t require a meta argument.</p>
|
|
4955
4955
|
<div class="method_details ">
|
4956
4956
|
<h3 class="signature " id="type-instance_method">
|
4957
4957
|
|
4958
|
-
|
4958
|
+
#<strong>type</strong> ⇒ <tt>Class</tt>
|
4959
4959
|
|
4960
4960
|
|
4961
4961
|
|
@@ -5202,7 +5202,7 @@ if this option doesn’t require a meta argument.</p>
|
|
5202
5202
|
<td>
|
5203
5203
|
<pre class="code"><span class="info file"># File 'lib/bovem/option.rb', line 41</span>
|
5204
5204
|
|
5205
|
-
<span class='kw'>class</span> <span class='const'>Option</span>
|
5205
|
+
<span class='kw'>class</span> <span class='const'><span class='object_link'><a href="" title="Bovem::Option (class)">Option</a></span></span>
|
5206
5206
|
<span class='id identifier rubyid_attr_accessor'>attr_accessor</span> <span class='symbol'>:name</span>
|
5207
5207
|
<span class='id identifier rubyid_attr_accessor'>attr_accessor</span> <span class='symbol'>:short</span>
|
5208
5208
|
<span class='id identifier rubyid_attr_accessor'>attr_accessor</span> <span class='symbol'>:long</span>
|
@@ -5297,7 +5297,7 @@ if this option doesn’t require a meta argument.</p>
|
|
5297
5297
|
</span> <span class='comment'>#
|
5298
5298
|
</span> <span class='comment'># @return [Object] The default value for this option.
|
5299
5299
|
</span> <span class='kw'>def</span> <span class='id identifier rubyid_default'>default</span>
|
5300
|
-
<span class='ivar'>@default</span> <span class='op'>||</span> <span class='const'>Bovem</span><span class='op'>::</span><span class='const'>OPTION_TYPES</span><span class='lbracket'>[</span><span class='ivar'>@type</span><span class='rbracket'>]</span> <span class='op'>||</span> <span class='kw'>false</span>
|
5300
|
+
<span class='ivar'>@default</span> <span class='op'>||</span> <span class='const'><span class='object_link'><a href="../Bovem.html" title="Bovem (module)">Bovem</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../Bovem.html#OPTION_TYPES-constant" title="Bovem::OPTION_TYPES (constant)">OPTION_TYPES</a></span></span><span class='lbracket'>[</span><span class='ivar'>@type</span><span class='rbracket'>]</span> <span class='op'>||</span> <span class='kw'>false</span>
|
5301
5301
|
<span class='kw'>end</span>
|
5302
5302
|
|
5303
5303
|
<span class='comment'># Check if the current option has a default value.
|
@@ -5390,10 +5390,10 @@ if this option doesn’t require a meta argument.</p>
|
|
5390
5390
|
<span class='kw'>case</span> <span class='id identifier rubyid_vs'>vs</span>
|
5391
5391
|
<span class='kw'>when</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>match</span><span class='tstring_end'>"</span></span> <span class='kw'>then</span> <span class='id identifier rubyid_locale'>locale</span><span class='period'>.</span><span class='id identifier rubyid_invalid_for_regexp'>invalid_for_regexp</span><span class='lparen'>(</span><span class='id identifier rubyid_label'>label</span><span class='comma'>,</span> <span class='ivar'>@validator</span><span class='period'>.</span><span class='id identifier rubyid_inspect'>inspect</span><span class='rparen'>)</span>
|
5392
5392
|
<span class='kw'>when</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>call</span><span class='tstring_end'>"</span></span> <span class='kw'>then</span> <span class='id identifier rubyid_locale'>locale</span><span class='period'>.</span><span class='id identifier rubyid_invalid_for_proc'>invalid_for_proc</span><span class='lparen'>(</span><span class='id identifier rubyid_label'>label</span><span class='rparen'>)</span>
|
5393
|
-
<span class='kw'>else</span> <span class='id identifier rubyid_locale'>locale</span><span class='period'>.</span><span class='id identifier rubyid_invalid_value'>invalid_value</span><span class='lparen'>(</span><span class='id identifier rubyid_label'>label</span><span class='comma'>,</span> <span class='const'>Bovem</span><span class='op'>::</span><span class='const'>Parser</span><span class='period'>.</span><span class='id identifier rubyid_smart_join'>smart_join</span><span class='lparen'>(</span><span class='ivar'>@validator</span><span class='period'>.</span><span class='id identifier rubyid_ensure_array'>ensure_array</span><span class='comma'>,</span> <span class='label'>separator:</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>, </span><span class='tstring_end'>"</span></span><span class='comma'>,</span> <span class='label'>last_separator:</span> <span class='id identifier rubyid_locale'>locale</span><span class='period'>.</span><span class='id identifier rubyid_join_separator'>join_separator</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_html_safe'>html_safe</span><span class='rparen'>)</span>
|
5393
|
+
<span class='kw'>else</span> <span class='id identifier rubyid_locale'>locale</span><span class='period'>.</span><span class='id identifier rubyid_invalid_value'>invalid_value</span><span class='lparen'>(</span><span class='id identifier rubyid_label'>label</span><span class='comma'>,</span> <span class='const'><span class='object_link'><a href="../Bovem.html" title="Bovem (module)">Bovem</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Parser.html" title="Bovem::Parser (class)">Parser</a></span></span><span class='period'>.</span><span class='id identifier rubyid_smart_join'>smart_join</span><span class='lparen'>(</span><span class='ivar'>@validator</span><span class='period'>.</span><span class='id identifier rubyid_ensure_array'>ensure_array</span><span class='comma'>,</span> <span class='label'>separator:</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>, </span><span class='tstring_end'>"</span></span><span class='comma'>,</span> <span class='label'>last_separator:</span> <span class='id identifier rubyid_locale'>locale</span><span class='period'>.</span><span class='id identifier rubyid_join_separator'>join_separator</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_html_safe'>html_safe</span><span class='rparen'>)</span>
|
5394
5394
|
<span class='kw'>end</span>
|
5395
5395
|
|
5396
|
-
<span class='id identifier rubyid_raise'>raise</span> <span class='const'>Bovem</span><span class='op'>::</span><span class='const'>Errors</span><span class='op'>::</span><span class='const'>Error</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='kw'>self</span><span class='comma'>,</span> <span class='symbol'>:validation_failed</span><span class='comma'>,</span> <span class='id identifier rubyid_message'>message</span><span class='rparen'>)</span>
|
5396
|
+
<span class='id identifier rubyid_raise'>raise</span> <span class='const'><span class='object_link'><a href="../Bovem.html" title="Bovem (module)">Bovem</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Errors.html" title="Bovem::Errors (module)">Errors</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Errors/Error.html" title="Bovem::Errors::Error (class)">Error</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="Errors/Error.html#initialize-instance_method" title="Bovem::Errors::Error#initialize (method)">new</a></span></span><span class='lparen'>(</span><span class='kw'>self</span><span class='comma'>,</span> <span class='symbol'>:validation_failed</span><span class='comma'>,</span> <span class='id identifier rubyid_message'>message</span><span class='rparen'>)</span>
|
5397
5397
|
<span class='kw'>end</span>
|
5398
5398
|
|
5399
5399
|
<span class='comment'># :nodoc:
|
@@ -5416,7 +5416,7 @@ if this option doesn’t require a meta argument.</p>
|
|
5416
5416
|
<div class="method_details ">
|
5417
5417
|
<h3 class="signature " id="validator-instance_method">
|
5418
5418
|
|
5419
|
-
|
5419
|
+
#<strong>validator</strong> ⇒ <tt>Array|Regexp</tt>
|
5420
5420
|
|
5421
5421
|
|
5422
5422
|
|
@@ -5663,7 +5663,7 @@ if this option doesn’t require a meta argument.</p>
|
|
5663
5663
|
<td>
|
5664
5664
|
<pre class="code"><span class="info file"># File 'lib/bovem/option.rb', line 41</span>
|
5665
5665
|
|
5666
|
-
<span class='kw'>class</span> <span class='const'>Option</span>
|
5666
|
+
<span class='kw'>class</span> <span class='const'><span class='object_link'><a href="" title="Bovem::Option (class)">Option</a></span></span>
|
5667
5667
|
<span class='id identifier rubyid_attr_accessor'>attr_accessor</span> <span class='symbol'>:name</span>
|
5668
5668
|
<span class='id identifier rubyid_attr_accessor'>attr_accessor</span> <span class='symbol'>:short</span>
|
5669
5669
|
<span class='id identifier rubyid_attr_accessor'>attr_accessor</span> <span class='symbol'>:long</span>
|
@@ -5758,7 +5758,7 @@ if this option doesn’t require a meta argument.</p>
|
|
5758
5758
|
</span> <span class='comment'>#
|
5759
5759
|
</span> <span class='comment'># @return [Object] The default value for this option.
|
5760
5760
|
</span> <span class='kw'>def</span> <span class='id identifier rubyid_default'>default</span>
|
5761
|
-
<span class='ivar'>@default</span> <span class='op'>||</span> <span class='const'>Bovem</span><span class='op'>::</span><span class='const'>OPTION_TYPES</span><span class='lbracket'>[</span><span class='ivar'>@type</span><span class='rbracket'>]</span> <span class='op'>||</span> <span class='kw'>false</span>
|
5761
|
+
<span class='ivar'>@default</span> <span class='op'>||</span> <span class='const'><span class='object_link'><a href="../Bovem.html" title="Bovem (module)">Bovem</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../Bovem.html#OPTION_TYPES-constant" title="Bovem::OPTION_TYPES (constant)">OPTION_TYPES</a></span></span><span class='lbracket'>[</span><span class='ivar'>@type</span><span class='rbracket'>]</span> <span class='op'>||</span> <span class='kw'>false</span>
|
5762
5762
|
<span class='kw'>end</span>
|
5763
5763
|
|
5764
5764
|
<span class='comment'># Check if the current option has a default value.
|
@@ -5851,10 +5851,10 @@ if this option doesn’t require a meta argument.</p>
|
|
5851
5851
|
<span class='kw'>case</span> <span class='id identifier rubyid_vs'>vs</span>
|
5852
5852
|
<span class='kw'>when</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>match</span><span class='tstring_end'>"</span></span> <span class='kw'>then</span> <span class='id identifier rubyid_locale'>locale</span><span class='period'>.</span><span class='id identifier rubyid_invalid_for_regexp'>invalid_for_regexp</span><span class='lparen'>(</span><span class='id identifier rubyid_label'>label</span><span class='comma'>,</span> <span class='ivar'>@validator</span><span class='period'>.</span><span class='id identifier rubyid_inspect'>inspect</span><span class='rparen'>)</span>
|
5853
5853
|
<span class='kw'>when</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>call</span><span class='tstring_end'>"</span></span> <span class='kw'>then</span> <span class='id identifier rubyid_locale'>locale</span><span class='period'>.</span><span class='id identifier rubyid_invalid_for_proc'>invalid_for_proc</span><span class='lparen'>(</span><span class='id identifier rubyid_label'>label</span><span class='rparen'>)</span>
|
5854
|
-
<span class='kw'>else</span> <span class='id identifier rubyid_locale'>locale</span><span class='period'>.</span><span class='id identifier rubyid_invalid_value'>invalid_value</span><span class='lparen'>(</span><span class='id identifier rubyid_label'>label</span><span class='comma'>,</span> <span class='const'>Bovem</span><span class='op'>::</span><span class='const'>Parser</span><span class='period'>.</span><span class='id identifier rubyid_smart_join'>smart_join</span><span class='lparen'>(</span><span class='ivar'>@validator</span><span class='period'>.</span><span class='id identifier rubyid_ensure_array'>ensure_array</span><span class='comma'>,</span> <span class='label'>separator:</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>, </span><span class='tstring_end'>"</span></span><span class='comma'>,</span> <span class='label'>last_separator:</span> <span class='id identifier rubyid_locale'>locale</span><span class='period'>.</span><span class='id identifier rubyid_join_separator'>join_separator</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_html_safe'>html_safe</span><span class='rparen'>)</span>
|
5854
|
+
<span class='kw'>else</span> <span class='id identifier rubyid_locale'>locale</span><span class='period'>.</span><span class='id identifier rubyid_invalid_value'>invalid_value</span><span class='lparen'>(</span><span class='id identifier rubyid_label'>label</span><span class='comma'>,</span> <span class='const'><span class='object_link'><a href="../Bovem.html" title="Bovem (module)">Bovem</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Parser.html" title="Bovem::Parser (class)">Parser</a></span></span><span class='period'>.</span><span class='id identifier rubyid_smart_join'>smart_join</span><span class='lparen'>(</span><span class='ivar'>@validator</span><span class='period'>.</span><span class='id identifier rubyid_ensure_array'>ensure_array</span><span class='comma'>,</span> <span class='label'>separator:</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>, </span><span class='tstring_end'>"</span></span><span class='comma'>,</span> <span class='label'>last_separator:</span> <span class='id identifier rubyid_locale'>locale</span><span class='period'>.</span><span class='id identifier rubyid_join_separator'>join_separator</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_html_safe'>html_safe</span><span class='rparen'>)</span>
|
5855
5855
|
<span class='kw'>end</span>
|
5856
5856
|
|
5857
|
-
<span class='id identifier rubyid_raise'>raise</span> <span class='const'>Bovem</span><span class='op'>::</span><span class='const'>Errors</span><span class='op'>::</span><span class='const'>Error</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='kw'>self</span><span class='comma'>,</span> <span class='symbol'>:validation_failed</span><span class='comma'>,</span> <span class='id identifier rubyid_message'>message</span><span class='rparen'>)</span>
|
5857
|
+
<span class='id identifier rubyid_raise'>raise</span> <span class='const'><span class='object_link'><a href="../Bovem.html" title="Bovem (module)">Bovem</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Errors.html" title="Bovem::Errors (module)">Errors</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Errors/Error.html" title="Bovem::Errors::Error (class)">Error</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="Errors/Error.html#initialize-instance_method" title="Bovem::Errors::Error#initialize (method)">new</a></span></span><span class='lparen'>(</span><span class='kw'>self</span><span class='comma'>,</span> <span class='symbol'>:validation_failed</span><span class='comma'>,</span> <span class='id identifier rubyid_message'>message</span><span class='rparen'>)</span>
|
5858
5858
|
<span class='kw'>end</span>
|
5859
5859
|
|
5860
5860
|
<span class='comment'># :nodoc:
|
@@ -5877,7 +5877,7 @@ if this option doesn’t require a meta argument.</p>
|
|
5877
5877
|
<div class="method_details ">
|
5878
5878
|
<h3 class="signature " id="value-instance_method">
|
5879
5879
|
|
5880
|
-
|
5880
|
+
#<strong>value</strong> ⇒ <tt>Object</tt>
|
5881
5881
|
|
5882
5882
|
|
5883
5883
|
|
@@ -6124,7 +6124,7 @@ if this option doesn’t require a meta argument.</p>
|
|
6124
6124
|
<td>
|
6125
6125
|
<pre class="code"><span class="info file"># File 'lib/bovem/option.rb', line 41</span>
|
6126
6126
|
|
6127
|
-
<span class='kw'>class</span> <span class='const'>Option</span>
|
6127
|
+
<span class='kw'>class</span> <span class='const'><span class='object_link'><a href="" title="Bovem::Option (class)">Option</a></span></span>
|
6128
6128
|
<span class='id identifier rubyid_attr_accessor'>attr_accessor</span> <span class='symbol'>:name</span>
|
6129
6129
|
<span class='id identifier rubyid_attr_accessor'>attr_accessor</span> <span class='symbol'>:short</span>
|
6130
6130
|
<span class='id identifier rubyid_attr_accessor'>attr_accessor</span> <span class='symbol'>:long</span>
|
@@ -6219,7 +6219,7 @@ if this option doesn’t require a meta argument.</p>
|
|
6219
6219
|
</span> <span class='comment'>#
|
6220
6220
|
</span> <span class='comment'># @return [Object] The default value for this option.
|
6221
6221
|
</span> <span class='kw'>def</span> <span class='id identifier rubyid_default'>default</span>
|
6222
|
-
<span class='ivar'>@default</span> <span class='op'>||</span> <span class='const'>Bovem</span><span class='op'>::</span><span class='const'>OPTION_TYPES</span><span class='lbracket'>[</span><span class='ivar'>@type</span><span class='rbracket'>]</span> <span class='op'>||</span> <span class='kw'>false</span>
|
6222
|
+
<span class='ivar'>@default</span> <span class='op'>||</span> <span class='const'><span class='object_link'><a href="../Bovem.html" title="Bovem (module)">Bovem</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../Bovem.html#OPTION_TYPES-constant" title="Bovem::OPTION_TYPES (constant)">OPTION_TYPES</a></span></span><span class='lbracket'>[</span><span class='ivar'>@type</span><span class='rbracket'>]</span> <span class='op'>||</span> <span class='kw'>false</span>
|
6223
6223
|
<span class='kw'>end</span>
|
6224
6224
|
|
6225
6225
|
<span class='comment'># Check if the current option has a default value.
|
@@ -6312,10 +6312,10 @@ if this option doesn’t require a meta argument.</p>
|
|
6312
6312
|
<span class='kw'>case</span> <span class='id identifier rubyid_vs'>vs</span>
|
6313
6313
|
<span class='kw'>when</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>match</span><span class='tstring_end'>"</span></span> <span class='kw'>then</span> <span class='id identifier rubyid_locale'>locale</span><span class='period'>.</span><span class='id identifier rubyid_invalid_for_regexp'>invalid_for_regexp</span><span class='lparen'>(</span><span class='id identifier rubyid_label'>label</span><span class='comma'>,</span> <span class='ivar'>@validator</span><span class='period'>.</span><span class='id identifier rubyid_inspect'>inspect</span><span class='rparen'>)</span>
|
6314
6314
|
<span class='kw'>when</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>call</span><span class='tstring_end'>"</span></span> <span class='kw'>then</span> <span class='id identifier rubyid_locale'>locale</span><span class='period'>.</span><span class='id identifier rubyid_invalid_for_proc'>invalid_for_proc</span><span class='lparen'>(</span><span class='id identifier rubyid_label'>label</span><span class='rparen'>)</span>
|
6315
|
-
<span class='kw'>else</span> <span class='id identifier rubyid_locale'>locale</span><span class='period'>.</span><span class='id identifier rubyid_invalid_value'>invalid_value</span><span class='lparen'>(</span><span class='id identifier rubyid_label'>label</span><span class='comma'>,</span> <span class='const'>Bovem</span><span class='op'>::</span><span class='const'>Parser</span><span class='period'>.</span><span class='id identifier rubyid_smart_join'>smart_join</span><span class='lparen'>(</span><span class='ivar'>@validator</span><span class='period'>.</span><span class='id identifier rubyid_ensure_array'>ensure_array</span><span class='comma'>,</span> <span class='label'>separator:</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>, </span><span class='tstring_end'>"</span></span><span class='comma'>,</span> <span class='label'>last_separator:</span> <span class='id identifier rubyid_locale'>locale</span><span class='period'>.</span><span class='id identifier rubyid_join_separator'>join_separator</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_html_safe'>html_safe</span><span class='rparen'>)</span>
|
6315
|
+
<span class='kw'>else</span> <span class='id identifier rubyid_locale'>locale</span><span class='period'>.</span><span class='id identifier rubyid_invalid_value'>invalid_value</span><span class='lparen'>(</span><span class='id identifier rubyid_label'>label</span><span class='comma'>,</span> <span class='const'><span class='object_link'><a href="../Bovem.html" title="Bovem (module)">Bovem</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Parser.html" title="Bovem::Parser (class)">Parser</a></span></span><span class='period'>.</span><span class='id identifier rubyid_smart_join'>smart_join</span><span class='lparen'>(</span><span class='ivar'>@validator</span><span class='period'>.</span><span class='id identifier rubyid_ensure_array'>ensure_array</span><span class='comma'>,</span> <span class='label'>separator:</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>, </span><span class='tstring_end'>"</span></span><span class='comma'>,</span> <span class='label'>last_separator:</span> <span class='id identifier rubyid_locale'>locale</span><span class='period'>.</span><span class='id identifier rubyid_join_separator'>join_separator</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_html_safe'>html_safe</span><span class='rparen'>)</span>
|
6316
6316
|
<span class='kw'>end</span>
|
6317
6317
|
|
6318
|
-
<span class='id identifier rubyid_raise'>raise</span> <span class='const'>Bovem</span><span class='op'>::</span><span class='const'>Errors</span><span class='op'>::</span><span class='const'>Error</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='kw'>self</span><span class='comma'>,</span> <span class='symbol'>:validation_failed</span><span class='comma'>,</span> <span class='id identifier rubyid_message'>message</span><span class='rparen'>)</span>
|
6318
|
+
<span class='id identifier rubyid_raise'>raise</span> <span class='const'><span class='object_link'><a href="../Bovem.html" title="Bovem (module)">Bovem</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Errors.html" title="Bovem::Errors (module)">Errors</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Errors/Error.html" title="Bovem::Errors::Error (class)">Error</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="Errors/Error.html#initialize-instance_method" title="Bovem::Errors::Error#initialize (method)">new</a></span></span><span class='lparen'>(</span><span class='kw'>self</span><span class='comma'>,</span> <span class='symbol'>:validation_failed</span><span class='comma'>,</span> <span class='id identifier rubyid_message'>message</span><span class='rparen'>)</span>
|
6319
6319
|
<span class='kw'>end</span>
|
6320
6320
|
|
6321
6321
|
<span class='comment'># :nodoc:
|
@@ -6343,7 +6343,7 @@ if this option doesn’t require a meta argument.</p>
|
|
6343
6343
|
<div class="method_details first">
|
6344
6344
|
<h3 class="signature first" id="complete_long-instance_method">
|
6345
6345
|
|
6346
|
-
|
6346
|
+
#<strong>complete_long</strong> ⇒ <tt>String</tt>
|
6347
6347
|
|
6348
6348
|
|
6349
6349
|
|
@@ -6400,7 +6400,7 @@ if this option doesn’t require a meta argument.</p>
|
|
6400
6400
|
<div class="method_details ">
|
6401
6401
|
<h3 class="signature " id="complete_short-instance_method">
|
6402
6402
|
|
6403
|
-
|
6403
|
+
#<strong>complete_short</strong> ⇒ <tt>String</tt>
|
6404
6404
|
|
6405
6405
|
|
6406
6406
|
|
@@ -6457,7 +6457,7 @@ if this option doesn’t require a meta argument.</p>
|
|
6457
6457
|
<div class="method_details ">
|
6458
6458
|
<h3 class="signature " id="default?-instance_method">
|
6459
6459
|
|
6460
|
-
|
6460
|
+
#<strong>default?</strong> ⇒ <tt>Boolean</tt>
|
6461
6461
|
|
6462
6462
|
|
6463
6463
|
|
@@ -6514,7 +6514,7 @@ if this option doesn’t require a meta argument.</p>
|
|
6514
6514
|
<div class="method_details ">
|
6515
6515
|
<h3 class="signature " id="execute_action-instance_method">
|
6516
6516
|
|
6517
|
-
|
6517
|
+
#<strong>execute_action</strong> ⇒ <tt>Object</tt>
|
6518
6518
|
|
6519
6519
|
|
6520
6520
|
|
@@ -6558,7 +6558,7 @@ if this option doesn’t require a meta argument.</p>
|
|
6558
6558
|
<div class="method_details ">
|
6559
6559
|
<h3 class="signature " id="help?-instance_method">
|
6560
6560
|
|
6561
|
-
|
6561
|
+
#<strong>help?</strong> ⇒ <tt>Boolean</tt>
|
6562
6562
|
|
6563
6563
|
|
6564
6564
|
|
@@ -6615,7 +6615,7 @@ if this option doesn’t require a meta argument.</p>
|
|
6615
6615
|
<div class="method_details ">
|
6616
6616
|
<h3 class="signature " id="label-instance_method">
|
6617
6617
|
|
6618
|
-
|
6618
|
+
#<strong>label</strong> ⇒ <tt>String</tt>
|
6619
6619
|
|
6620
6620
|
|
6621
6621
|
|
@@ -6672,7 +6672,7 @@ if this option doesn’t require a meta argument.</p>
|
|
6672
6672
|
<div class="method_details ">
|
6673
6673
|
<h3 class="signature " id="provided?-instance_method">
|
6674
6674
|
|
6675
|
-
|
6675
|
+
#<strong>provided?</strong> ⇒ <tt>Boolean</tt>
|
6676
6676
|
|
6677
6677
|
|
6678
6678
|
|
@@ -6729,7 +6729,7 @@ if this option doesn’t require a meta argument.</p>
|
|
6729
6729
|
<div class="method_details ">
|
6730
6730
|
<h3 class="signature " id="requires_argument?-instance_method">
|
6731
6731
|
|
6732
|
-
|
6732
|
+
#<strong>requires_argument?</strong> ⇒ <tt>Boolean</tt>
|
6733
6733
|
|
6734
6734
|
|
6735
6735
|
|
@@ -6786,7 +6786,7 @@ if this option doesn’t require a meta argument.</p>
|
|
6786
6786
|
<div class="method_details ">
|
6787
6787
|
<h3 class="signature " id="set-instance_method">
|
6788
6788
|
|
6789
|
-
|
6789
|
+
#<strong>set</strong>(value, raise_error = true) ⇒ <tt>Boolean</tt>
|
6790
6790
|
|
6791
6791
|
|
6792
6792
|
|
@@ -6902,11 +6902,12 @@ if this option doesn’t require a meta argument.</p>
|
|
6902
6902
|
|
6903
6903
|
</div>
|
6904
6904
|
|
6905
|
-
|
6906
|
-
Generated on
|
6905
|
+
<div id="footer">
|
6906
|
+
Generated on Thu Jan 12 16:10:59 2017 by
|
6907
6907
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
6908
|
-
0.
|
6908
|
+
0.9.7 (ruby-2.3.0).
|
6909
6909
|
</div>
|
6910
6910
|
|
6911
|
+
</div>
|
6911
6912
|
</body>
|
6912
6913
|
</html>
|