wwwjdic 13.0.1 → 16.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG +60 -1
- data/Gemfile +7 -1
- data/README.md +500 -225
- data/Rakefile +10 -3
- data/copyright.md +17 -29
- data/examples/basics.rb +53 -45
- data/examples/translate.rb +159 -86
- data/examples/uri.rb +46 -78
- data/html/CHANGELOG.html +90 -35
- data/html/COPYING_md.html +26 -38
- data/html/Gemfile.html +25 -35
- data/html/Object.html +838 -74
- data/html/README_md.html +322 -175
- data/html/Rakefile.html +28 -38
- data/html/WWWJDic.html +63 -104
- data/html/WWWJDic/ParsableDuckType.html +38 -58
- data/html/WWWJDic/Parser.html +52 -92
- data/html/WWWJDic/Parsers.html +29 -35
- data/html/WWWJDic/Parsers/Dict.html +50 -76
- data/html/WWWJDic/Parsers/Display.html +45 -69
- data/html/WWWJDic/Parsers/Key.html +46 -70
- data/html/WWWJDic/Parsers/Search.html +41 -61
- data/html/WWWJDic/Parsers/Server.html +45 -69
- data/html/WWWJDic/Splitter.html +81 -175
- data/html/WWWJDic/Utils.html +30 -36
- data/html/WWWJDic/Utils/Downloader.html +41 -41
- data/html/WWWJDic/Utils/Downloader/Downloader.html +65 -92
- data/html/WWWJDic/Utils/Raisers.html +46 -98
- data/html/WWWJDic/WWWJDic.html +166 -348
- data/html/copyright_md.html +219 -239
- data/html/created.rid +33 -58
- data/html/css/rdoc.css +638 -590
- data/html/index.html +313 -182
- data/html/js/darkfish.js +84 -161
- data/html/js/navigation.js +4 -40
- data/html/js/navigation.js.gz +0 -0
- data/html/js/search.js +109 -109
- data/html/js/search_index.js +1 -1
- data/html/js/search_index.js.gz +0 -0
- data/html/js/searcher.js +228 -229
- data/html/js/searcher.js.gz +0 -0
- data/html/table_of_contents.html +161 -200
- data/lib/wwwjdic.rb +14 -15
- data/lib/wwwjdic/application.rb +68 -36
- data/lib/wwwjdic/constants.rb +56 -12
- data/lib/wwwjdic/locales/de.yml +9 -4
- data/lib/wwwjdic/locales/en.yml +9 -4
- data/lib/wwwjdic/locales/es.yml +9 -4
- data/lib/wwwjdic/locales/fr.yml +9 -4
- data/lib/wwwjdic/locales/hu.yml +9 -4
- data/lib/wwwjdic/locales/it.yml +9 -4
- data/lib/wwwjdic/locales/ja.yml +11 -5
- data/lib/wwwjdic/locales/nl.yml +9 -4
- data/lib/wwwjdic/locales/ru.yml +9 -4
- data/lib/wwwjdic/locales/sl.yml +9 -4
- data/lib/wwwjdic/locales/sv.yml +9 -4
- data/lib/wwwjdic/parser.rb +13 -8
- data/lib/wwwjdic/parsers/dict.rb +11 -8
- data/lib/wwwjdic/parsers/display.rb +8 -3
- data/lib/wwwjdic/parsers/key.rb +9 -3
- data/lib/wwwjdic/parsers/search.rb +10 -3
- data/lib/wwwjdic/parsers/server.rb +8 -3
- data/lib/wwwjdic/utils/downloader.rb +37 -34
- data/lib/wwwjdic/utils/raisers.rb +12 -15
- data/lib/wwwjdic/utils/splitter.rb +32 -18
- data/lib/wwwjdic/version.rb +22 -8
- data/test/test_helper.rb +10 -1
- data/test/test_wwwjdic.rb +10 -4
- data/test/wwwjdic/locales/de.yml +9 -1
- data/test/wwwjdic/locales/en.yml +9 -1
- data/test/wwwjdic/locales/es.yml +9 -1
- data/test/wwwjdic/locales/fr.yml +9 -1
- data/test/wwwjdic/locales/hu.yml +9 -1
- data/test/wwwjdic/locales/it.yml +10 -1
- data/test/wwwjdic/locales/ja.yml +11 -2
- data/test/wwwjdic/locales/nl.yml +9 -1
- data/test/wwwjdic/locales/ru.yml +9 -1
- data/test/wwwjdic/locales/sl.yml +9 -1
- data/test/wwwjdic/locales/sv.yml +9 -1
- data/test/wwwjdic/locales/test_locales.rb +41 -24
- data/test/wwwjdic/parsers/test_dict.rb +65 -37
- data/test/wwwjdic/parsers/test_display.rb +11 -5
- data/test/wwwjdic/parsers/test_key.rb +10 -4
- data/test/wwwjdic/parsers/test_server.rb +11 -5
- data/test/wwwjdic/test_application.rb +199 -149
- data/test/wwwjdic/test_parsable_duck_type.rb +9 -5
- data/test/wwwjdic/utils/test_downloader.rb +7 -1
- data/test/wwwjdic/utils/test_raisers.rb +46 -29
- data/wwwjdic.gemspec +44 -26
- metadata +55 -43
- data/acknowledgements.md +0 -55
- data/authors.md +0 -67
- data/html/acknowledgements_md.html +0 -149
- data/html/authors_md.html +0 -181
- data/html/js/jquery.js +0 -4
- data/html/wwwjdic_gemspec.html +0 -161
@@ -4,26 +4,27 @@
|
|
4
4
|
<head>
|
5
5
|
<meta charset="UTF-8">
|
6
6
|
|
7
|
-
<title>class WWWJDic::Parsers::Display - wwwjdic
|
7
|
+
<title>class WWWJDic::Parsers::Display - wwwjdic 16.1.0</title>
|
8
8
|
|
9
9
|
<script type="text/javascript">
|
10
10
|
var rdoc_rel_prefix = "../../";
|
11
11
|
var index_rel_prefix = "../../";
|
12
12
|
</script>
|
13
13
|
|
14
|
-
<script src="../../js/
|
15
|
-
<script src="../../js/
|
14
|
+
<script defer src="../../js/navigation.js"></script>
|
15
|
+
<script defer src="../../js/search.js"></script>
|
16
|
+
<script defer src="../../js/search_index.js"></script>
|
17
|
+
<script defer src="../../js/searcher.js"></script>
|
18
|
+
<script defer src="../../js/darkfish.js"></script>
|
16
19
|
|
17
20
|
<link href="../../css/fonts.css" rel="stylesheet">
|
18
21
|
<link href="../../css/rdoc.css" rel="stylesheet">
|
19
22
|
|
20
23
|
|
21
|
-
|
22
|
-
|
23
|
-
<body id="top" role="document" class="class">
|
24
|
+
<body class="class" id="top" role="document">
|
24
25
|
<nav role="navigation">
|
25
26
|
<div id="project-navigation">
|
26
|
-
<div id="home-section" role="region" title="Quick navigation"
|
27
|
+
<div class="nav-section" id="home-section" role="region" title="Quick navigation">
|
27
28
|
<h2>
|
28
29
|
<a href="../../index.html" rel="home">Home</a>
|
29
30
|
</h2>
|
@@ -35,69 +36,64 @@
|
|
35
36
|
</div>
|
36
37
|
</div>
|
37
38
|
|
38
|
-
<div
|
39
|
-
<form action="#" method="get"
|
39
|
+
<div class="project-section initially-hidden" id="search-section" role="search">
|
40
|
+
<form accept-charset="utf-8" action="#" method="get">
|
40
41
|
<div id="search-field-wrapper">
|
41
|
-
<input
|
42
|
-
|
43
|
-
|
44
|
-
|
42
|
+
<input aria-autocomplete="list" aria-controls="search-results" aria-label="Search"
|
43
|
+
id="search-field" name="search"
|
44
|
+
placeholder="Search" role="combobox" spellcheck="false" title="Type to search, Up and Down to navigate, Enter to load"
|
45
|
+
type="text">
|
45
46
|
</div>
|
46
47
|
|
47
|
-
<ul
|
48
|
-
aria-
|
49
|
-
|
48
|
+
<ul aria-atomic="false" aria-busy="false"
|
49
|
+
aria-expanded="false" aria-label="Search Results"
|
50
|
+
class="initially-hidden" id="search-results"></ul>
|
50
51
|
</form>
|
51
52
|
</div>
|
52
53
|
|
53
54
|
</div>
|
54
55
|
|
55
|
-
|
56
|
+
|
56
57
|
|
57
58
|
<div id="class-metadata">
|
58
|
-
|
59
|
-
|
59
|
+
|
60
|
+
|
61
|
+
<div class="nav-section" id="parent-class-section">
|
60
62
|
<h3>Parent</h3>
|
61
63
|
|
62
|
-
|
63
64
|
<p class="link"><a href="../../Object.html">Object</a>
|
64
|
-
|
65
65
|
</div>
|
66
66
|
|
67
|
-
|
67
|
+
|
68
|
+
<div class="nav-section" id="includes-section">
|
68
69
|
<h3>Included Modules</h3>
|
69
70
|
|
70
71
|
<ul class="link-list">
|
71
|
-
|
72
|
-
|
73
72
|
<li><a class="include" href="../Utils/Raisers.html">WWWJDic::Utils::Raisers</a>
|
74
|
-
|
75
|
-
|
76
73
|
</ul>
|
77
74
|
</div>
|
78
75
|
|
79
|
-
|
80
|
-
|
81
|
-
|
76
|
+
|
77
|
+
|
78
|
+
<!-- Method Quickref -->
|
79
|
+
<div class="nav-section" id="method-list-section">
|
82
80
|
<h3>Methods</h3>
|
83
81
|
|
84
82
|
<ul class="link-list" role="directory">
|
85
|
-
|
86
83
|
<li ><a href="#method-i-parse">#parse</a>
|
87
|
-
|
88
84
|
</ul>
|
89
85
|
</div>
|
90
86
|
|
91
87
|
</div>
|
92
88
|
</nav>
|
93
89
|
|
94
|
-
<main
|
95
|
-
<h1 id="class-WWWJDic::Parsers::Display"
|
90
|
+
<main aria-labelledby="class-WWWJDic::Parsers::Display" role="main">
|
91
|
+
<h1 class="class" id="class-WWWJDic::Parsers::Display">
|
96
92
|
class WWWJDic::Parsers::Display
|
97
93
|
</h1>
|
98
94
|
|
99
95
|
<section class="description">
|
100
|
-
|
96
|
+
|
101
97
|
<p>This class is an implementation of the Parsable duck type that checks the display type. The only needed parameter is a boolean, with <code>true</code> for regular.</p>
|
102
98
|
|
103
99
|
<p>M = backdoor entry (regular display) or Z = backdoor entry (raw dictionary display)</p>
|
@@ -106,7 +102,7 @@
|
|
106
102
|
<p><a href="mailto:marcobresciani_1974@libero.it">Marco Bresciani</a></p>
|
107
103
|
</dd><dt>Copyright
|
108
104
|
<dd>
|
109
|
-
<p
|
105
|
+
<p>© 2014-2021 Marco Bresciani</p>
|
110
106
|
</dd><dt>License
|
111
107
|
<dd>
|
112
108
|
<p>GNU General Public License version 3</p>
|
@@ -114,71 +110,51 @@
|
|
114
110
|
|
115
111
|
</section>
|
116
112
|
|
117
|
-
|
118
|
-
|
119
|
-
|
113
|
+
<section class="documentation-section" id="5Buntitled-5D">
|
114
|
+
|
120
115
|
|
121
|
-
|
122
116
|
|
123
|
-
|
124
117
|
|
125
|
-
|
126
118
|
|
127
|
-
|
128
|
-
<section id="public-instance-5Buntitled-5D-method-details" class="method-section">
|
119
|
+
<section class="method-section" id="public-instance-5Buntitled-5D-method-details">
|
129
120
|
<header>
|
130
121
|
<h3>Public Instance Methods</h3>
|
131
122
|
</header>
|
132
123
|
|
133
|
-
|
134
|
-
<div id="method-i-parse" class="method-detail ">
|
135
|
-
|
124
|
+
<div class="method-detail " id="method-i-parse">
|
136
125
|
<div class="method-heading">
|
137
126
|
<span class="method-name">parse</span><span
|
138
127
|
class="method-args">(value = :display)</span>
|
139
|
-
|
140
128
|
<span class="method-click-advice">click to toggle source</span>
|
141
|
-
|
142
129
|
</div>
|
143
|
-
|
144
130
|
|
145
131
|
<div class="method-description">
|
146
|
-
|
147
132
|
<p>The parsable duck type interface to every parser usage.</p>
|
148
|
-
|
149
|
-
|
150
133
|
|
151
|
-
|
152
134
|
<div class="method-source-code" id="parse-source">
|
153
135
|
<pre> <span class="ruby-comment"># File lib/wwwjdic/parsers/display.rb</span>
|
154
|
-
<span class="line-num">
|
155
|
-
<span class="line-num">
|
156
|
-
<span class="line-num">
|
157
|
-
<span class="line-num">
|
158
|
-
<span class="line-num">
|
159
|
-
<span class="line-num">
|
160
|
-
<span class="line-num">
|
161
|
-
<span class="line-num">
|
136
|
+
<span class="line-num">45</span> <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">parse</span>(<span class="ruby-identifier">value</span> = <span class="ruby-value">:display</span>)
|
137
|
+
<span class="line-num">46</span> <span class="ruby-identifier">raise</span> <span class="ruby-constant">ArgumentError</span>, <span class="ruby-constant">I18n</span>.<span class="ruby-identifier">t</span>(<span class="ruby-string">'error.nil'</span>) <span class="ruby-keyword">if</span> <span class="ruby-identifier">value</span>.<span class="ruby-identifier">nil?</span>
|
138
|
+
<span class="line-num">47</span> <span class="ruby-identifier">raise</span> <span class="ruby-constant">ArgumentError</span>, <span class="ruby-constant">I18n</span>.<span class="ruby-identifier">t</span>(<span class="ruby-string">'error.param'</span>, <span class="ruby-value">value:</span> <span class="ruby-identifier">value</span>) <span class="ruby-keyword">unless</span> <span class="ruby-identifier">value</span>.<span class="ruby-identifier">is_a?</span> <span class="ruby-constant">Symbol</span>
|
139
|
+
<span class="line-num">48</span>
|
140
|
+
<span class="line-num">49</span> <span class="ruby-identifier">raiser_array</span>(<span class="ruby-string">'error.param'</span>, <span class="ruby-identifier">value</span>, <span class="ruby-constant">DISPLAY</span>.<span class="ruby-identifier">keys</span>)
|
141
|
+
<span class="line-num">50</span>
|
142
|
+
<span class="line-num">51</span> <span class="ruby-identifier">value</span>
|
143
|
+
<span class="line-num">52</span> <span class="ruby-keyword">end</span></pre>
|
162
144
|
</div>
|
163
|
-
|
164
145
|
</div>
|
165
146
|
|
166
|
-
|
167
147
|
|
168
|
-
|
169
148
|
</div>
|
170
149
|
|
171
|
-
|
172
150
|
</section>
|
173
|
-
|
174
|
-
</section>
|
175
151
|
|
152
|
+
</section>
|
176
153
|
</main>
|
177
154
|
|
178
155
|
|
179
156
|
<footer id="validator-badges" role="contentinfo">
|
180
157
|
<p><a href="https://validator.w3.org/check/referer">Validate</a>
|
181
|
-
<p>Generated by <a href="https://ruby.github.io/rdoc/">RDoc</a> 6.
|
158
|
+
<p>Generated by <a href="https://ruby.github.io/rdoc/">RDoc</a> 6.3.2.
|
182
159
|
<p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
|
183
160
|
</footer>
|
184
|
-
|
@@ -4,26 +4,27 @@
|
|
4
4
|
<head>
|
5
5
|
<meta charset="UTF-8">
|
6
6
|
|
7
|
-
<title>class WWWJDic::Parsers::Key - wwwjdic
|
7
|
+
<title>class WWWJDic::Parsers::Key - wwwjdic 16.1.0</title>
|
8
8
|
|
9
9
|
<script type="text/javascript">
|
10
10
|
var rdoc_rel_prefix = "../../";
|
11
11
|
var index_rel_prefix = "../../";
|
12
12
|
</script>
|
13
13
|
|
14
|
-
<script src="../../js/
|
15
|
-
<script src="../../js/
|
14
|
+
<script defer src="../../js/navigation.js"></script>
|
15
|
+
<script defer src="../../js/search.js"></script>
|
16
|
+
<script defer src="../../js/search_index.js"></script>
|
17
|
+
<script defer src="../../js/searcher.js"></script>
|
18
|
+
<script defer src="../../js/darkfish.js"></script>
|
16
19
|
|
17
20
|
<link href="../../css/fonts.css" rel="stylesheet">
|
18
21
|
<link href="../../css/rdoc.css" rel="stylesheet">
|
19
22
|
|
20
23
|
|
21
|
-
|
22
|
-
|
23
|
-
<body id="top" role="document" class="class">
|
24
|
+
<body class="class" id="top" role="document">
|
24
25
|
<nav role="navigation">
|
25
26
|
<div id="project-navigation">
|
26
|
-
<div id="home-section" role="region" title="Quick navigation"
|
27
|
+
<div class="nav-section" id="home-section" role="region" title="Quick navigation">
|
27
28
|
<h2>
|
28
29
|
<a href="../../index.html" rel="home">Home</a>
|
29
30
|
</h2>
|
@@ -35,69 +36,64 @@
|
|
35
36
|
</div>
|
36
37
|
</div>
|
37
38
|
|
38
|
-
<div
|
39
|
-
<form action="#" method="get"
|
39
|
+
<div class="project-section initially-hidden" id="search-section" role="search">
|
40
|
+
<form accept-charset="utf-8" action="#" method="get">
|
40
41
|
<div id="search-field-wrapper">
|
41
|
-
<input
|
42
|
-
|
43
|
-
|
44
|
-
|
42
|
+
<input aria-autocomplete="list" aria-controls="search-results" aria-label="Search"
|
43
|
+
id="search-field" name="search"
|
44
|
+
placeholder="Search" role="combobox" spellcheck="false" title="Type to search, Up and Down to navigate, Enter to load"
|
45
|
+
type="text">
|
45
46
|
</div>
|
46
47
|
|
47
|
-
<ul
|
48
|
-
aria-
|
49
|
-
|
48
|
+
<ul aria-atomic="false" aria-busy="false"
|
49
|
+
aria-expanded="false" aria-label="Search Results"
|
50
|
+
class="initially-hidden" id="search-results"></ul>
|
50
51
|
</form>
|
51
52
|
</div>
|
52
53
|
|
53
54
|
</div>
|
54
55
|
|
55
|
-
|
56
|
+
|
56
57
|
|
57
58
|
<div id="class-metadata">
|
58
|
-
|
59
|
-
|
59
|
+
|
60
|
+
|
61
|
+
<div class="nav-section" id="parent-class-section">
|
60
62
|
<h3>Parent</h3>
|
61
63
|
|
62
|
-
|
63
64
|
<p class="link"><a href="../../Object.html">Object</a>
|
64
|
-
|
65
65
|
</div>
|
66
66
|
|
67
|
-
|
67
|
+
|
68
|
+
<div class="nav-section" id="includes-section">
|
68
69
|
<h3>Included Modules</h3>
|
69
70
|
|
70
71
|
<ul class="link-list">
|
71
|
-
|
72
|
-
|
73
72
|
<li><a class="include" href="../Utils/Raisers.html">WWWJDic::Utils::Raisers</a>
|
74
|
-
|
75
|
-
|
76
73
|
</ul>
|
77
74
|
</div>
|
78
75
|
|
79
|
-
|
80
|
-
|
81
|
-
|
76
|
+
|
77
|
+
|
78
|
+
<!-- Method Quickref -->
|
79
|
+
<div class="nav-section" id="method-list-section">
|
82
80
|
<h3>Methods</h3>
|
83
81
|
|
84
82
|
<ul class="link-list" role="directory">
|
85
|
-
|
86
83
|
<li ><a href="#method-i-parse">#parse</a>
|
87
|
-
|
88
84
|
</ul>
|
89
85
|
</div>
|
90
86
|
|
91
87
|
</div>
|
92
88
|
</nav>
|
93
89
|
|
94
|
-
<main
|
95
|
-
<h1 id="class-WWWJDic::Parsers::Key"
|
90
|
+
<main aria-labelledby="class-WWWJDic::Parsers::Key" role="main">
|
91
|
+
<h1 class="class" id="class-WWWJDic::Parsers::Key">
|
96
92
|
class WWWJDic::Parsers::Key
|
97
93
|
</h1>
|
98
94
|
|
99
95
|
<section class="description">
|
100
|
-
|
96
|
+
|
101
97
|
<p>This class is an implementation of the Parsable duck type that checks the display type. The only needed parameter is the word to translate.</p>
|
102
98
|
|
103
99
|
<p>k is the key type:</p>
|
@@ -143,7 +139,7 @@
|
|
143
139
|
<p><a href="mailto:marcobresciani_1974@libero.it">Marco Bresciani</a></p>
|
144
140
|
</dd><dt>Copyright
|
145
141
|
<dd>
|
146
|
-
<p
|
142
|
+
<p>© 2014-2021 Marco Bresciani</p>
|
147
143
|
</dd><dt>License
|
148
144
|
<dd>
|
149
145
|
<p>GNU General Public License version 3</p>
|
@@ -151,71 +147,51 @@
|
|
151
147
|
|
152
148
|
</section>
|
153
149
|
|
154
|
-
|
155
|
-
|
156
|
-
|
150
|
+
<section class="documentation-section" id="5Buntitled-5D">
|
151
|
+
|
157
152
|
|
158
|
-
|
159
153
|
|
160
|
-
|
161
154
|
|
162
|
-
|
163
155
|
|
164
|
-
|
165
|
-
<section id="public-instance-5Buntitled-5D-method-details" class="method-section">
|
156
|
+
<section class="method-section" id="public-instance-5Buntitled-5D-method-details">
|
166
157
|
<header>
|
167
158
|
<h3>Public Instance Methods</h3>
|
168
159
|
</header>
|
169
160
|
|
170
|
-
|
171
|
-
<div id="method-i-parse" class="method-detail ">
|
172
|
-
|
161
|
+
<div class="method-detail " id="method-i-parse">
|
173
162
|
<div class="method-heading">
|
174
163
|
<span class="method-name">parse</span><span
|
175
|
-
class="method-args">(value = :
|
176
|
-
|
164
|
+
class="method-args">(value = :english)</span>
|
177
165
|
<span class="method-click-advice">click to toggle source</span>
|
178
|
-
|
179
166
|
</div>
|
180
|
-
|
181
167
|
|
182
168
|
<div class="method-description">
|
183
|
-
|
184
169
|
<p>The parsable duck type interface to every parser usage.</p>
|
185
|
-
|
186
|
-
|
187
170
|
|
188
|
-
|
189
171
|
<div class="method-source-code" id="parse-source">
|
190
172
|
<pre> <span class="ruby-comment"># File lib/wwwjdic/parsers/key.rb</span>
|
191
|
-
<span class="line-num">
|
192
|
-
<span class="line-num">
|
193
|
-
<span class="line-num">
|
194
|
-
<span class="line-num">
|
195
|
-
<span class="line-num">
|
196
|
-
<span class="line-num">
|
197
|
-
<span class="line-num">
|
198
|
-
<span class="line-num">
|
173
|
+
<span class="line-num">71</span> <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">parse</span>(<span class="ruby-identifier">value</span> = <span class="ruby-value">:english</span>)
|
174
|
+
<span class="line-num">72</span> <span class="ruby-identifier">raise</span> <span class="ruby-constant">ArgumentError</span>, <span class="ruby-constant">I18n</span>.<span class="ruby-identifier">t</span>(<span class="ruby-string">'error.nil'</span>) <span class="ruby-keyword">if</span> <span class="ruby-identifier">value</span>.<span class="ruby-identifier">nil?</span>
|
175
|
+
<span class="line-num">73</span> <span class="ruby-identifier">raise</span> <span class="ruby-constant">ArgumentError</span>, <span class="ruby-constant">I18n</span>.<span class="ruby-identifier">t</span>(<span class="ruby-string">'error.param'</span>, <span class="ruby-value">value:</span> <span class="ruby-identifier">value</span>) <span class="ruby-keyword">unless</span> <span class="ruby-identifier">value</span>.<span class="ruby-identifier">is_a?</span> <span class="ruby-constant">Symbol</span>
|
176
|
+
<span class="line-num">74</span>
|
177
|
+
<span class="line-num">75</span> <span class="ruby-identifier">raiser_array</span>(<span class="ruby-string">'error.param'</span>, <span class="ruby-identifier">value</span>, <span class="ruby-constant">KEYS</span>.<span class="ruby-identifier">keys</span>)
|
178
|
+
<span class="line-num">76</span>
|
179
|
+
<span class="line-num">77</span> <span class="ruby-identifier">value</span>
|
180
|
+
<span class="line-num">78</span> <span class="ruby-keyword">end</span></pre>
|
199
181
|
</div>
|
200
|
-
|
201
182
|
</div>
|
202
183
|
|
203
|
-
|
204
184
|
|
205
|
-
|
206
185
|
</div>
|
207
186
|
|
208
|
-
|
209
187
|
</section>
|
210
|
-
|
211
|
-
</section>
|
212
188
|
|
189
|
+
</section>
|
213
190
|
</main>
|
214
191
|
|
215
192
|
|
216
193
|
<footer id="validator-badges" role="contentinfo">
|
217
194
|
<p><a href="https://validator.w3.org/check/referer">Validate</a>
|
218
|
-
<p>Generated by <a href="https://ruby.github.io/rdoc/">RDoc</a> 6.
|
195
|
+
<p>Generated by <a href="https://ruby.github.io/rdoc/">RDoc</a> 6.3.2.
|
219
196
|
<p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
|
220
197
|
</footer>
|
221
|
-
|
@@ -4,26 +4,27 @@
|
|
4
4
|
<head>
|
5
5
|
<meta charset="UTF-8">
|
6
6
|
|
7
|
-
<title>class WWWJDic::Parsers::Search - wwwjdic
|
7
|
+
<title>class WWWJDic::Parsers::Search - wwwjdic 16.1.0</title>
|
8
8
|
|
9
9
|
<script type="text/javascript">
|
10
10
|
var rdoc_rel_prefix = "../../";
|
11
11
|
var index_rel_prefix = "../../";
|
12
12
|
</script>
|
13
13
|
|
14
|
-
<script src="../../js/
|
15
|
-
<script src="../../js/
|
14
|
+
<script defer src="../../js/navigation.js"></script>
|
15
|
+
<script defer src="../../js/search.js"></script>
|
16
|
+
<script defer src="../../js/search_index.js"></script>
|
17
|
+
<script defer src="../../js/searcher.js"></script>
|
18
|
+
<script defer src="../../js/darkfish.js"></script>
|
16
19
|
|
17
20
|
<link href="../../css/fonts.css" rel="stylesheet">
|
18
21
|
<link href="../../css/rdoc.css" rel="stylesheet">
|
19
22
|
|
20
23
|
|
21
|
-
|
22
|
-
|
23
|
-
<body id="top" role="document" class="class">
|
24
|
+
<body class="class" id="top" role="document">
|
24
25
|
<nav role="navigation">
|
25
26
|
<div id="project-navigation">
|
26
|
-
<div id="home-section" role="region" title="Quick navigation"
|
27
|
+
<div class="nav-section" id="home-section" role="region" title="Quick navigation">
|
27
28
|
<h2>
|
28
29
|
<a href="../../index.html" rel="home">Home</a>
|
29
30
|
</h2>
|
@@ -35,58 +36,56 @@
|
|
35
36
|
</div>
|
36
37
|
</div>
|
37
38
|
|
38
|
-
<div
|
39
|
-
<form action="#" method="get"
|
39
|
+
<div class="project-section initially-hidden" id="search-section" role="search">
|
40
|
+
<form accept-charset="utf-8" action="#" method="get">
|
40
41
|
<div id="search-field-wrapper">
|
41
|
-
<input
|
42
|
-
|
43
|
-
|
44
|
-
|
42
|
+
<input aria-autocomplete="list" aria-controls="search-results" aria-label="Search"
|
43
|
+
id="search-field" name="search"
|
44
|
+
placeholder="Search" role="combobox" spellcheck="false" title="Type to search, Up and Down to navigate, Enter to load"
|
45
|
+
type="text">
|
45
46
|
</div>
|
46
47
|
|
47
|
-
<ul
|
48
|
-
aria-
|
49
|
-
|
48
|
+
<ul aria-atomic="false" aria-busy="false"
|
49
|
+
aria-expanded="false" aria-label="Search Results"
|
50
|
+
class="initially-hidden" id="search-results"></ul>
|
50
51
|
</form>
|
51
52
|
</div>
|
52
53
|
|
53
54
|
</div>
|
54
55
|
|
55
|
-
|
56
|
+
|
56
57
|
|
57
58
|
<div id="class-metadata">
|
58
|
-
|
59
|
-
|
59
|
+
|
60
|
+
|
61
|
+
<div class="nav-section" id="parent-class-section">
|
60
62
|
<h3>Parent</h3>
|
61
63
|
|
62
|
-
|
63
64
|
<p class="link"><a href="../../Object.html">Object</a>
|
64
|
-
|
65
65
|
</div>
|
66
66
|
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
67
|
+
|
68
|
+
|
69
|
+
|
70
|
+
<!-- Method Quickref -->
|
71
|
+
<div class="nav-section" id="method-list-section">
|
71
72
|
<h3>Methods</h3>
|
72
73
|
|
73
74
|
<ul class="link-list" role="directory">
|
74
|
-
|
75
75
|
<li ><a href="#method-i-parse">#parse</a>
|
76
|
-
|
77
76
|
</ul>
|
78
77
|
</div>
|
79
78
|
|
80
79
|
</div>
|
81
80
|
</nav>
|
82
81
|
|
83
|
-
<main
|
84
|
-
<h1 id="class-WWWJDic::Parsers::Search"
|
82
|
+
<main aria-labelledby="class-WWWJDic::Parsers::Search" role="main">
|
83
|
+
<h1 class="class" id="class-WWWJDic::Parsers::Search">
|
85
84
|
class WWWJDic::Parsers::Search
|
86
85
|
</h1>
|
87
86
|
|
88
87
|
<section class="description">
|
89
|
-
|
88
|
+
|
90
89
|
<p>This class is an implementation of the Parsable duck type that checks the display type. The only needed parameter is the word to translate.</p>
|
91
90
|
|
92
91
|
<p>t is the search type:</p>
|
@@ -140,7 +139,7 @@
|
|
140
139
|
<p><a href="mailto:marcobresciani_1974@libero.it">Marco Bresciani</a></p>
|
141
140
|
</dd><dt>Copyright
|
142
141
|
<dd>
|
143
|
-
<p
|
142
|
+
<p>© 2014-2021 Marco Bresciani</p>
|
144
143
|
</dd><dt>License
|
145
144
|
<dd>
|
146
145
|
<p>GNU General Public License version 3</p>
|
@@ -148,67 +147,48 @@
|
|
148
147
|
|
149
148
|
</section>
|
150
149
|
|
151
|
-
|
152
|
-
|
153
|
-
|
150
|
+
<section class="documentation-section" id="5Buntitled-5D">
|
151
|
+
|
154
152
|
|
155
|
-
|
156
153
|
|
157
|
-
|
158
154
|
|
159
|
-
|
160
155
|
|
161
|
-
|
162
|
-
<section id="public-instance-5Buntitled-5D-method-details" class="method-section">
|
156
|
+
<section class="method-section" id="public-instance-5Buntitled-5D-method-details">
|
163
157
|
<header>
|
164
158
|
<h3>Public Instance Methods</h3>
|
165
159
|
</header>
|
166
160
|
|
167
|
-
|
168
|
-
<div id="method-i-parse" class="method-detail ">
|
169
|
-
|
161
|
+
<div class="method-detail " id="method-i-parse">
|
170
162
|
<div class="method-heading">
|
171
163
|
<span class="method-name">parse</span><span
|
172
164
|
class="method-args">(value = '')</span>
|
173
|
-
|
174
165
|
<span class="method-click-advice">click to toggle source</span>
|
175
|
-
|
176
166
|
</div>
|
177
|
-
|
178
167
|
|
179
168
|
<div class="method-description">
|
180
|
-
|
181
169
|
<p>The parsable duck type interface to every parser usage.</p>
|
182
|
-
|
183
|
-
|
184
170
|
|
185
|
-
|
186
171
|
<div class="method-source-code" id="parse-source">
|
187
172
|
<pre> <span class="ruby-comment"># File lib/wwwjdic/parsers/search.rb</span>
|
188
|
-
<span class="line-num">
|
189
|
-
<span class="line-num">
|
190
|
-
<span class="line-num">
|
191
|
-
<span class="line-num">
|
173
|
+
<span class="line-num">60</span> <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">parse</span>(<span class="ruby-identifier">value</span> = <span class="ruby-string">''</span>)
|
174
|
+
<span class="line-num">61</span> <span class="ruby-keyword">return</span> <span class="ruby-string">'D'</span> <span class="ruby-keyword">if</span> <span class="ruby-identifier">value</span> <span class="ruby-operator">==</span> <span class="ruby-constant">CGI</span>.<span class="ruby-identifier">escape</span>(<span class="ruby-identifier">value</span>).<span class="ruby-identifier">to_s</span>
|
175
|
+
<span class="line-num">62</span>
|
176
|
+
<span class="line-num">63</span> <span class="ruby-string">'U'</span>
|
177
|
+
<span class="line-num">64</span> <span class="ruby-keyword">end</span></pre>
|
192
178
|
</div>
|
193
|
-
|
194
179
|
</div>
|
195
180
|
|
196
|
-
|
197
181
|
|
198
|
-
|
199
182
|
</div>
|
200
183
|
|
201
|
-
|
202
184
|
</section>
|
203
|
-
|
204
|
-
</section>
|
205
185
|
|
186
|
+
</section>
|
206
187
|
</main>
|
207
188
|
|
208
189
|
|
209
190
|
<footer id="validator-badges" role="contentinfo">
|
210
191
|
<p><a href="https://validator.w3.org/check/referer">Validate</a>
|
211
|
-
<p>Generated by <a href="https://ruby.github.io/rdoc/">RDoc</a> 6.
|
192
|
+
<p>Generated by <a href="https://ruby.github.io/rdoc/">RDoc</a> 6.3.2.
|
212
193
|
<p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
|
213
194
|
</footer>
|
214
|
-
|