wwwjdic 16.0.0 → 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 +10 -1
- data/Gemfile +2 -4
- data/README.md +5 -4
- data/Rakefile +2 -4
- data/copyright.md +5 -5
- data/examples/basics.rb +2 -4
- data/examples/translate.rb +2 -4
- data/examples/uri.rb +2 -6
- data/html/CHANGELOG.html +34 -24
- data/html/COPYING_md.html +22 -23
- data/html/Gemfile.html +23 -24
- data/html/Object.html +393 -394
- data/html/README_md.html +27 -28
- data/html/Rakefile.html +23 -24
- data/html/WWWJDic.html +42 -43
- data/html/WWWJDic/ParsableDuckType.html +35 -36
- data/html/WWWJDic/Parser.html +47 -48
- data/html/WWWJDic/Parsers.html +28 -29
- data/html/WWWJDic/Parsers/Dict.html +47 -48
- data/html/WWWJDic/Parsers/Display.html +42 -43
- data/html/WWWJDic/Parsers/Key.html +42 -43
- data/html/WWWJDic/Parsers/Search.html +38 -39
- data/html/WWWJDic/Parsers/Server.html +42 -43
- data/html/WWWJDic/Splitter.html +76 -77
- data/html/WWWJDic/Utils.html +29 -30
- data/html/WWWJDic/Utils/Downloader.html +40 -35
- data/html/WWWJDic/Utils/Downloader/Downloader.html +52 -45
- data/html/WWWJDic/Utils/Raisers.html +43 -44
- data/html/WWWJDic/WWWJDic.html +162 -163
- data/html/copyright_md.html +27 -28
- data/html/created.rid +33 -33
- data/html/css/rdoc.css +638 -619
- data/html/index.html +26 -27
- data/html/js/darkfish.js +84 -84
- data/html/js/navigation.js.gz +0 -0
- data/html/js/search.js +109 -110
- 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 +10 -10
- data/lib/wwwjdic.rb +3 -5
- data/lib/wwwjdic/application.rb +4 -5
- data/lib/wwwjdic/constants.rb +11 -5
- data/lib/wwwjdic/locales/de.yml +2 -2
- data/lib/wwwjdic/locales/en.yml +2 -2
- data/lib/wwwjdic/locales/es.yml +2 -2
- data/lib/wwwjdic/locales/fr.yml +2 -2
- data/lib/wwwjdic/locales/hu.yml +2 -2
- data/lib/wwwjdic/locales/it.yml +2 -2
- data/lib/wwwjdic/locales/ja.yml +4 -4
- data/lib/wwwjdic/locales/nl.yml +2 -2
- data/lib/wwwjdic/locales/ru.yml +2 -2
- data/lib/wwwjdic/locales/sl.yml +2 -2
- data/lib/wwwjdic/locales/sv.yml +2 -2
- data/lib/wwwjdic/parser.rb +3 -5
- data/lib/wwwjdic/parsers/dict.rb +3 -5
- data/lib/wwwjdic/parsers/display.rb +3 -5
- data/lib/wwwjdic/parsers/key.rb +3 -5
- data/lib/wwwjdic/parsers/search.rb +3 -5
- data/lib/wwwjdic/parsers/server.rb +3 -5
- data/lib/wwwjdic/utils/downloader.rb +14 -8
- data/lib/wwwjdic/utils/raisers.rb +4 -6
- data/lib/wwwjdic/utils/splitter.rb +4 -5
- data/lib/wwwjdic/version.rb +10 -4
- data/test/test_helper.rb +2 -4
- data/test/test_wwwjdic.rb +2 -4
- data/test/wwwjdic/locales/de.yml +2 -2
- data/test/wwwjdic/locales/en.yml +2 -2
- data/test/wwwjdic/locales/es.yml +2 -2
- data/test/wwwjdic/locales/fr.yml +2 -2
- data/test/wwwjdic/locales/hu.yml +2 -2
- data/test/wwwjdic/locales/it.yml +2 -2
- data/test/wwwjdic/locales/ja.yml +4 -4
- data/test/wwwjdic/locales/nl.yml +2 -2
- data/test/wwwjdic/locales/ru.yml +2 -2
- data/test/wwwjdic/locales/sl.yml +2 -2
- data/test/wwwjdic/locales/sv.yml +2 -2
- data/test/wwwjdic/locales/test_locales.rb +2 -4
- data/test/wwwjdic/parsers/test_dict.rb +2 -4
- data/test/wwwjdic/parsers/test_display.rb +2 -4
- data/test/wwwjdic/parsers/test_key.rb +2 -4
- data/test/wwwjdic/parsers/test_server.rb +2 -4
- data/test/wwwjdic/test_application.rb +3 -5
- data/test/wwwjdic/test_parsable_duck_type.rb +4 -5
- data/test/wwwjdic/utils/test_downloader.rb +2 -4
- data/test/wwwjdic/utils/test_raisers.rb +2 -4
- data/wwwjdic.gemspec +2 -4
- metadata +11 -11
@@ -4,27 +4,27 @@
|
|
4
4
|
<head>
|
5
5
|
<meta charset="UTF-8">
|
6
6
|
|
7
|
-
<title>class WWWJDic::Parsers::Display - wwwjdic 16.
|
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/navigation.js"
|
15
|
-
<script src="../../js/search.js"
|
16
|
-
<script src="../../js/search_index.js"
|
17
|
-
<script src="../../js/searcher.js"
|
18
|
-
<script src="../../js/darkfish.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>
|
19
19
|
|
20
20
|
<link href="../../css/fonts.css" rel="stylesheet">
|
21
21
|
<link href="../../css/rdoc.css" rel="stylesheet">
|
22
22
|
|
23
23
|
|
24
|
-
<body id="top" role="document"
|
24
|
+
<body class="class" id="top" role="document">
|
25
25
|
<nav role="navigation">
|
26
26
|
<div id="project-navigation">
|
27
|
-
<div id="home-section" role="region" title="Quick navigation"
|
27
|
+
<div class="nav-section" id="home-section" role="region" title="Quick navigation">
|
28
28
|
<h2>
|
29
29
|
<a href="../../index.html" rel="home">Home</a>
|
30
30
|
</h2>
|
@@ -36,36 +36,36 @@
|
|
36
36
|
</div>
|
37
37
|
</div>
|
38
38
|
|
39
|
-
<div
|
40
|
-
<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">
|
41
41
|
<div id="search-field-wrapper">
|
42
|
-
<input
|
43
|
-
|
44
|
-
|
45
|
-
|
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">
|
46
46
|
</div>
|
47
47
|
|
48
|
-
<ul
|
49
|
-
aria-
|
50
|
-
|
48
|
+
<ul aria-atomic="false" aria-busy="false"
|
49
|
+
aria-expanded="false" aria-label="Search Results"
|
50
|
+
class="initially-hidden" id="search-results"></ul>
|
51
51
|
</form>
|
52
52
|
</div>
|
53
53
|
|
54
54
|
</div>
|
55
55
|
|
56
|
-
|
56
|
+
|
57
57
|
|
58
58
|
<div id="class-metadata">
|
59
|
-
|
60
|
-
|
61
|
-
<div
|
59
|
+
|
60
|
+
|
61
|
+
<div class="nav-section" id="parent-class-section">
|
62
62
|
<h3>Parent</h3>
|
63
63
|
|
64
64
|
<p class="link"><a href="../../Object.html">Object</a>
|
65
65
|
</div>
|
66
66
|
|
67
|
-
|
68
|
-
<div
|
67
|
+
|
68
|
+
<div class="nav-section" id="includes-section">
|
69
69
|
<h3>Included Modules</h3>
|
70
70
|
|
71
71
|
<ul class="link-list">
|
@@ -73,10 +73,10 @@
|
|
73
73
|
</ul>
|
74
74
|
</div>
|
75
75
|
|
76
|
-
|
77
|
-
|
76
|
+
|
77
|
+
|
78
78
|
<!-- Method Quickref -->
|
79
|
-
<div
|
79
|
+
<div class="nav-section" id="method-list-section">
|
80
80
|
<h3>Methods</h3>
|
81
81
|
|
82
82
|
<ul class="link-list" role="directory">
|
@@ -87,13 +87,13 @@
|
|
87
87
|
</div>
|
88
88
|
</nav>
|
89
89
|
|
90
|
-
<main
|
91
|
-
<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">
|
92
92
|
class WWWJDic::Parsers::Display
|
93
93
|
</h1>
|
94
94
|
|
95
95
|
<section class="description">
|
96
|
-
|
96
|
+
|
97
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>
|
98
98
|
|
99
99
|
<p>M = backdoor entry (regular display) or Z = backdoor entry (raw dictionary display)</p>
|
@@ -102,7 +102,7 @@
|
|
102
102
|
<p><a href="mailto:marcobresciani_1974@libero.it">Marco Bresciani</a></p>
|
103
103
|
</dd><dt>Copyright
|
104
104
|
<dd>
|
105
|
-
<p
|
105
|
+
<p>© 2014-2021 Marco Bresciani</p>
|
106
106
|
</dd><dt>License
|
107
107
|
<dd>
|
108
108
|
<p>GNU General Public License version 3</p>
|
@@ -110,18 +110,18 @@
|
|
110
110
|
|
111
111
|
</section>
|
112
112
|
|
113
|
-
<section
|
113
|
+
<section class="documentation-section" id="5Buntitled-5D">
|
114
114
|
|
115
115
|
|
116
116
|
|
117
117
|
|
118
118
|
|
119
|
-
<section id="public-instance-5Buntitled-5D-method-details"
|
119
|
+
<section class="method-section" id="public-instance-5Buntitled-5D-method-details">
|
120
120
|
<header>
|
121
121
|
<h3>Public Instance Methods</h3>
|
122
122
|
</header>
|
123
123
|
|
124
|
-
<div
|
124
|
+
<div class="method-detail " id="method-i-parse">
|
125
125
|
<div class="method-heading">
|
126
126
|
<span class="method-name">parse</span><span
|
127
127
|
class="method-args">(value = :display)</span>
|
@@ -133,14 +133,14 @@
|
|
133
133
|
|
134
134
|
<div class="method-source-code" id="parse-source">
|
135
135
|
<pre> <span class="ruby-comment"># File lib/wwwjdic/parsers/display.rb</span>
|
136
|
-
<span class="line-num">
|
137
|
-
<span class="line-num">
|
138
|
-
<span class="line-num">
|
139
|
-
<span class="line-num">
|
140
|
-
<span class="line-num">
|
141
|
-
<span class="line-num">
|
142
|
-
<span class="line-num">
|
143
|
-
<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>
|
144
144
|
</div>
|
145
145
|
</div>
|
146
146
|
|
@@ -155,7 +155,6 @@
|
|
155
155
|
|
156
156
|
<footer id="validator-badges" role="contentinfo">
|
157
157
|
<p><a href="https://validator.w3.org/check/referer">Validate</a>
|
158
|
-
<p>Generated by <a href="https://ruby.github.io/rdoc/">RDoc</a> 6.3.
|
158
|
+
<p>Generated by <a href="https://ruby.github.io/rdoc/">RDoc</a> 6.3.2.
|
159
159
|
<p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
|
160
160
|
</footer>
|
161
|
-
|
@@ -4,27 +4,27 @@
|
|
4
4
|
<head>
|
5
5
|
<meta charset="UTF-8">
|
6
6
|
|
7
|
-
<title>class WWWJDic::Parsers::Key - wwwjdic 16.
|
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/navigation.js"
|
15
|
-
<script src="../../js/search.js"
|
16
|
-
<script src="../../js/search_index.js"
|
17
|
-
<script src="../../js/searcher.js"
|
18
|
-
<script src="../../js/darkfish.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>
|
19
19
|
|
20
20
|
<link href="../../css/fonts.css" rel="stylesheet">
|
21
21
|
<link href="../../css/rdoc.css" rel="stylesheet">
|
22
22
|
|
23
23
|
|
24
|
-
<body id="top" role="document"
|
24
|
+
<body class="class" id="top" role="document">
|
25
25
|
<nav role="navigation">
|
26
26
|
<div id="project-navigation">
|
27
|
-
<div id="home-section" role="region" title="Quick navigation"
|
27
|
+
<div class="nav-section" id="home-section" role="region" title="Quick navigation">
|
28
28
|
<h2>
|
29
29
|
<a href="../../index.html" rel="home">Home</a>
|
30
30
|
</h2>
|
@@ -36,36 +36,36 @@
|
|
36
36
|
</div>
|
37
37
|
</div>
|
38
38
|
|
39
|
-
<div
|
40
|
-
<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">
|
41
41
|
<div id="search-field-wrapper">
|
42
|
-
<input
|
43
|
-
|
44
|
-
|
45
|
-
|
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">
|
46
46
|
</div>
|
47
47
|
|
48
|
-
<ul
|
49
|
-
aria-
|
50
|
-
|
48
|
+
<ul aria-atomic="false" aria-busy="false"
|
49
|
+
aria-expanded="false" aria-label="Search Results"
|
50
|
+
class="initially-hidden" id="search-results"></ul>
|
51
51
|
</form>
|
52
52
|
</div>
|
53
53
|
|
54
54
|
</div>
|
55
55
|
|
56
|
-
|
56
|
+
|
57
57
|
|
58
58
|
<div id="class-metadata">
|
59
|
-
|
60
|
-
|
61
|
-
<div
|
59
|
+
|
60
|
+
|
61
|
+
<div class="nav-section" id="parent-class-section">
|
62
62
|
<h3>Parent</h3>
|
63
63
|
|
64
64
|
<p class="link"><a href="../../Object.html">Object</a>
|
65
65
|
</div>
|
66
66
|
|
67
|
-
|
68
|
-
<div
|
67
|
+
|
68
|
+
<div class="nav-section" id="includes-section">
|
69
69
|
<h3>Included Modules</h3>
|
70
70
|
|
71
71
|
<ul class="link-list">
|
@@ -73,10 +73,10 @@
|
|
73
73
|
</ul>
|
74
74
|
</div>
|
75
75
|
|
76
|
-
|
77
|
-
|
76
|
+
|
77
|
+
|
78
78
|
<!-- Method Quickref -->
|
79
|
-
<div
|
79
|
+
<div class="nav-section" id="method-list-section">
|
80
80
|
<h3>Methods</h3>
|
81
81
|
|
82
82
|
<ul class="link-list" role="directory">
|
@@ -87,13 +87,13 @@
|
|
87
87
|
</div>
|
88
88
|
</nav>
|
89
89
|
|
90
|
-
<main
|
91
|
-
<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">
|
92
92
|
class WWWJDic::Parsers::Key
|
93
93
|
</h1>
|
94
94
|
|
95
95
|
<section class="description">
|
96
|
-
|
96
|
+
|
97
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>
|
98
98
|
|
99
99
|
<p>k is the key type:</p>
|
@@ -139,7 +139,7 @@
|
|
139
139
|
<p><a href="mailto:marcobresciani_1974@libero.it">Marco Bresciani</a></p>
|
140
140
|
</dd><dt>Copyright
|
141
141
|
<dd>
|
142
|
-
<p
|
142
|
+
<p>© 2014-2021 Marco Bresciani</p>
|
143
143
|
</dd><dt>License
|
144
144
|
<dd>
|
145
145
|
<p>GNU General Public License version 3</p>
|
@@ -147,18 +147,18 @@
|
|
147
147
|
|
148
148
|
</section>
|
149
149
|
|
150
|
-
<section
|
150
|
+
<section class="documentation-section" id="5Buntitled-5D">
|
151
151
|
|
152
152
|
|
153
153
|
|
154
154
|
|
155
155
|
|
156
|
-
<section id="public-instance-5Buntitled-5D-method-details"
|
156
|
+
<section class="method-section" id="public-instance-5Buntitled-5D-method-details">
|
157
157
|
<header>
|
158
158
|
<h3>Public Instance Methods</h3>
|
159
159
|
</header>
|
160
160
|
|
161
|
-
<div
|
161
|
+
<div class="method-detail " id="method-i-parse">
|
162
162
|
<div class="method-heading">
|
163
163
|
<span class="method-name">parse</span><span
|
164
164
|
class="method-args">(value = :english)</span>
|
@@ -170,14 +170,14 @@
|
|
170
170
|
|
171
171
|
<div class="method-source-code" id="parse-source">
|
172
172
|
<pre> <span class="ruby-comment"># File lib/wwwjdic/parsers/key.rb</span>
|
173
|
-
<span class="line-num">
|
174
|
-
<span class="line-num">
|
175
|
-
<span class="line-num">
|
176
|
-
<span class="line-num">
|
177
|
-
<span class="line-num">
|
178
|
-
<span class="line-num">
|
179
|
-
<span class="line-num">
|
180
|
-
<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>
|
181
181
|
</div>
|
182
182
|
</div>
|
183
183
|
|
@@ -192,7 +192,6 @@
|
|
192
192
|
|
193
193
|
<footer id="validator-badges" role="contentinfo">
|
194
194
|
<p><a href="https://validator.w3.org/check/referer">Validate</a>
|
195
|
-
<p>Generated by <a href="https://ruby.github.io/rdoc/">RDoc</a> 6.3.
|
195
|
+
<p>Generated by <a href="https://ruby.github.io/rdoc/">RDoc</a> 6.3.2.
|
196
196
|
<p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
|
197
197
|
</footer>
|
198
|
-
|
@@ -4,27 +4,27 @@
|
|
4
4
|
<head>
|
5
5
|
<meta charset="UTF-8">
|
6
6
|
|
7
|
-
<title>class WWWJDic::Parsers::Search - wwwjdic 16.
|
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/navigation.js"
|
15
|
-
<script src="../../js/search.js"
|
16
|
-
<script src="../../js/search_index.js"
|
17
|
-
<script src="../../js/searcher.js"
|
18
|
-
<script src="../../js/darkfish.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>
|
19
19
|
|
20
20
|
<link href="../../css/fonts.css" rel="stylesheet">
|
21
21
|
<link href="../../css/rdoc.css" rel="stylesheet">
|
22
22
|
|
23
23
|
|
24
|
-
<body id="top" role="document"
|
24
|
+
<body class="class" id="top" role="document">
|
25
25
|
<nav role="navigation">
|
26
26
|
<div id="project-navigation">
|
27
|
-
<div id="home-section" role="region" title="Quick navigation"
|
27
|
+
<div class="nav-section" id="home-section" role="region" title="Quick navigation">
|
28
28
|
<h2>
|
29
29
|
<a href="../../index.html" rel="home">Home</a>
|
30
30
|
</h2>
|
@@ -36,39 +36,39 @@
|
|
36
36
|
</div>
|
37
37
|
</div>
|
38
38
|
|
39
|
-
<div
|
40
|
-
<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">
|
41
41
|
<div id="search-field-wrapper">
|
42
|
-
<input
|
43
|
-
|
44
|
-
|
45
|
-
|
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">
|
46
46
|
</div>
|
47
47
|
|
48
|
-
<ul
|
49
|
-
aria-
|
50
|
-
|
48
|
+
<ul aria-atomic="false" aria-busy="false"
|
49
|
+
aria-expanded="false" aria-label="Search Results"
|
50
|
+
class="initially-hidden" id="search-results"></ul>
|
51
51
|
</form>
|
52
52
|
</div>
|
53
53
|
|
54
54
|
</div>
|
55
55
|
|
56
|
-
|
56
|
+
|
57
57
|
|
58
58
|
<div id="class-metadata">
|
59
|
-
|
60
|
-
|
61
|
-
<div
|
59
|
+
|
60
|
+
|
61
|
+
<div class="nav-section" id="parent-class-section">
|
62
62
|
<h3>Parent</h3>
|
63
63
|
|
64
64
|
<p class="link"><a href="../../Object.html">Object</a>
|
65
65
|
</div>
|
66
66
|
|
67
|
-
|
68
|
-
|
69
|
-
|
67
|
+
|
68
|
+
|
69
|
+
|
70
70
|
<!-- Method Quickref -->
|
71
|
-
<div
|
71
|
+
<div class="nav-section" id="method-list-section">
|
72
72
|
<h3>Methods</h3>
|
73
73
|
|
74
74
|
<ul class="link-list" role="directory">
|
@@ -79,13 +79,13 @@
|
|
79
79
|
</div>
|
80
80
|
</nav>
|
81
81
|
|
82
|
-
<main
|
83
|
-
<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">
|
84
84
|
class WWWJDic::Parsers::Search
|
85
85
|
</h1>
|
86
86
|
|
87
87
|
<section class="description">
|
88
|
-
|
88
|
+
|
89
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>
|
90
90
|
|
91
91
|
<p>t is the search type:</p>
|
@@ -139,7 +139,7 @@
|
|
139
139
|
<p><a href="mailto:marcobresciani_1974@libero.it">Marco Bresciani</a></p>
|
140
140
|
</dd><dt>Copyright
|
141
141
|
<dd>
|
142
|
-
<p
|
142
|
+
<p>© 2014-2021 Marco Bresciani</p>
|
143
143
|
</dd><dt>License
|
144
144
|
<dd>
|
145
145
|
<p>GNU General Public License version 3</p>
|
@@ -147,18 +147,18 @@
|
|
147
147
|
|
148
148
|
</section>
|
149
149
|
|
150
|
-
<section
|
150
|
+
<section class="documentation-section" id="5Buntitled-5D">
|
151
151
|
|
152
152
|
|
153
153
|
|
154
154
|
|
155
155
|
|
156
|
-
<section id="public-instance-5Buntitled-5D-method-details"
|
156
|
+
<section class="method-section" id="public-instance-5Buntitled-5D-method-details">
|
157
157
|
<header>
|
158
158
|
<h3>Public Instance Methods</h3>
|
159
159
|
</header>
|
160
160
|
|
161
|
-
<div
|
161
|
+
<div class="method-detail " id="method-i-parse">
|
162
162
|
<div class="method-heading">
|
163
163
|
<span class="method-name">parse</span><span
|
164
164
|
class="method-args">(value = '')</span>
|
@@ -170,11 +170,11 @@
|
|
170
170
|
|
171
171
|
<div class="method-source-code" id="parse-source">
|
172
172
|
<pre> <span class="ruby-comment"># File lib/wwwjdic/parsers/search.rb</span>
|
173
|
-
<span class="line-num">
|
174
|
-
<span class="line-num">
|
175
|
-
<span class="line-num">
|
176
|
-
<span class="line-num">
|
177
|
-
<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>
|
178
178
|
</div>
|
179
179
|
</div>
|
180
180
|
|
@@ -189,7 +189,6 @@
|
|
189
189
|
|
190
190
|
<footer id="validator-badges" role="contentinfo">
|
191
191
|
<p><a href="https://validator.w3.org/check/referer">Validate</a>
|
192
|
-
<p>Generated by <a href="https://ruby.github.io/rdoc/">RDoc</a> 6.3.
|
192
|
+
<p>Generated by <a href="https://ruby.github.io/rdoc/">RDoc</a> 6.3.2.
|
193
193
|
<p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
|
194
194
|
</footer>
|
195
|
-
|