wwwjdic 13.0.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.
Files changed (130) hide show
  1. checksums.yaml +7 -0
  2. data/CHANGELOG +419 -0
  3. data/COPYING.md +675 -0
  4. data/Gemfile +21 -0
  5. data/README.md +303 -0
  6. data/Rakefile +52 -0
  7. data/acknowledgements.md +55 -0
  8. data/authors.md +67 -0
  9. data/copyright.md +377 -0
  10. data/examples/basics.rb +117 -0
  11. data/examples/translate.rb +128 -0
  12. data/examples/uri.rb +129 -0
  13. data/html/CHANGELOG.html +597 -0
  14. data/html/COPYING_md.html +389 -0
  15. data/html/Gemfile.html +104 -0
  16. data/html/Object.html +185 -0
  17. data/html/README_md.html +343 -0
  18. data/html/Rakefile.html +137 -0
  19. data/html/WWWJDic/ParsableDuckType.html +159 -0
  20. data/html/WWWJDic/Parser.html +233 -0
  21. data/html/WWWJDic/Parsers/Dict.html +191 -0
  22. data/html/WWWJDic/Parsers/Display.html +184 -0
  23. data/html/WWWJDic/Parsers/Key.html +221 -0
  24. data/html/WWWJDic/Parsers/Search.html +214 -0
  25. data/html/WWWJDic/Parsers/Server.html +182 -0
  26. data/html/WWWJDic/Parsers.html +96 -0
  27. data/html/WWWJDic/Splitter.html +378 -0
  28. data/html/WWWJDic/Utils/Downloader/Downloader.html +227 -0
  29. data/html/WWWJDic/Utils/Downloader.html +108 -0
  30. data/html/WWWJDic/Utils/Raisers.html +235 -0
  31. data/html/WWWJDic/Utils.html +108 -0
  32. data/html/WWWJDic/WWWJDic.html +715 -0
  33. data/html/WWWJDic.html +348 -0
  34. data/html/acknowledgements_md.html +149 -0
  35. data/html/authors_md.html +181 -0
  36. data/html/copyright_md.html +422 -0
  37. data/html/created.rid +59 -0
  38. data/html/css/fonts.css +167 -0
  39. data/html/css/rdoc.css +590 -0
  40. data/html/fonts/Lato-Light.ttf +0 -0
  41. data/html/fonts/Lato-LightItalic.ttf +0 -0
  42. data/html/fonts/Lato-Regular.ttf +0 -0
  43. data/html/fonts/Lato-RegularItalic.ttf +0 -0
  44. data/html/fonts/SourceCodePro-Bold.ttf +0 -0
  45. data/html/fonts/SourceCodePro-Regular.ttf +0 -0
  46. data/html/images/add.png +0 -0
  47. data/html/images/arrow_up.png +0 -0
  48. data/html/images/brick.png +0 -0
  49. data/html/images/brick_link.png +0 -0
  50. data/html/images/bug.png +0 -0
  51. data/html/images/bullet_black.png +0 -0
  52. data/html/images/bullet_toggle_minus.png +0 -0
  53. data/html/images/bullet_toggle_plus.png +0 -0
  54. data/html/images/date.png +0 -0
  55. data/html/images/delete.png +0 -0
  56. data/html/images/find.png +0 -0
  57. data/html/images/loadingAnimation.gif +0 -0
  58. data/html/images/macFFBgHack.png +0 -0
  59. data/html/images/package.png +0 -0
  60. data/html/images/page_green.png +0 -0
  61. data/html/images/page_white_text.png +0 -0
  62. data/html/images/page_white_width.png +0 -0
  63. data/html/images/plugin.png +0 -0
  64. data/html/images/ruby.png +0 -0
  65. data/html/images/tag_blue.png +0 -0
  66. data/html/images/tag_green.png +0 -0
  67. data/html/images/transparent.png +0 -0
  68. data/html/images/wrench.png +0 -0
  69. data/html/images/wrench_orange.png +0 -0
  70. data/html/images/zoom.png +0 -0
  71. data/html/index.html +363 -0
  72. data/html/js/darkfish.js +161 -0
  73. data/html/js/jquery.js +4 -0
  74. data/html/js/navigation.js +141 -0
  75. data/html/js/navigation.js.gz +0 -0
  76. data/html/js/search.js +109 -0
  77. data/html/js/search_index.js +1 -0
  78. data/html/js/search_index.js.gz +0 -0
  79. data/html/js/searcher.js +229 -0
  80. data/html/js/searcher.js.gz +0 -0
  81. data/html/table_of_contents.html +541 -0
  82. data/html/wwwjdic_gemspec.html +161 -0
  83. data/lib/wwwjdic/application.rb +233 -0
  84. data/lib/wwwjdic/constants.rb +113 -0
  85. data/lib/wwwjdic/locales/de.yml +29 -0
  86. data/lib/wwwjdic/locales/en.yml +29 -0
  87. data/lib/wwwjdic/locales/es.yml +29 -0
  88. data/lib/wwwjdic/locales/fr.yml +29 -0
  89. data/lib/wwwjdic/locales/hu.yml +29 -0
  90. data/lib/wwwjdic/locales/it.yml +29 -0
  91. data/lib/wwwjdic/locales/ja.yml +30 -0
  92. data/lib/wwwjdic/locales/nl.yml +29 -0
  93. data/lib/wwwjdic/locales/ru.yml +29 -0
  94. data/lib/wwwjdic/locales/sl.yml +29 -0
  95. data/lib/wwwjdic/locales/sv.yml +29 -0
  96. data/lib/wwwjdic/parser.rb +46 -0
  97. data/lib/wwwjdic/parsers/dict.rb +58 -0
  98. data/lib/wwwjdic/parsers/display.rb +50 -0
  99. data/lib/wwwjdic/parsers/key.rb +75 -0
  100. data/lib/wwwjdic/parsers/search.rb +60 -0
  101. data/lib/wwwjdic/parsers/server.rb +47 -0
  102. data/lib/wwwjdic/utils/downloader.rb +135 -0
  103. data/lib/wwwjdic/utils/raisers.rb +67 -0
  104. data/lib/wwwjdic/utils/splitter.rb +84 -0
  105. data/lib/wwwjdic/version.rb +20 -0
  106. data/lib/wwwjdic.rb +57 -0
  107. data/test/test_helper.rb +40 -0
  108. data/test/test_wwwjdic.rb +32 -0
  109. data/test/wwwjdic/locales/de.yml +22 -0
  110. data/test/wwwjdic/locales/en.yml +22 -0
  111. data/test/wwwjdic/locales/es.yml +22 -0
  112. data/test/wwwjdic/locales/fr.yml +22 -0
  113. data/test/wwwjdic/locales/hu.yml +22 -0
  114. data/test/wwwjdic/locales/it.yml +21 -0
  115. data/test/wwwjdic/locales/ja.yml +23 -0
  116. data/test/wwwjdic/locales/nl.yml +22 -0
  117. data/test/wwwjdic/locales/ru.yml +22 -0
  118. data/test/wwwjdic/locales/sl.yml +22 -0
  119. data/test/wwwjdic/locales/sv.yml +22 -0
  120. data/test/wwwjdic/locales/test_locales.rb +65 -0
  121. data/test/wwwjdic/parsers/test_dict.rb +73 -0
  122. data/test/wwwjdic/parsers/test_display.rb +51 -0
  123. data/test/wwwjdic/parsers/test_key.rb +52 -0
  124. data/test/wwwjdic/parsers/test_server.rb +51 -0
  125. data/test/wwwjdic/test_application.rb +219 -0
  126. data/test/wwwjdic/test_parsable_duck_type.rb +37 -0
  127. data/test/wwwjdic/utils/test_downloader.rb +41 -0
  128. data/test/wwwjdic/utils/test_raisers.rb +59 -0
  129. data/wwwjdic.gemspec +74 -0
  130. metadata +309 -0
@@ -0,0 +1,137 @@
1
+ <!DOCTYPE html>
2
+
3
+ <html>
4
+ <head>
5
+ <meta charset="UTF-8">
6
+
7
+ <title>Rakefile - wwwjdic 13.0.0</title>
8
+
9
+ <script type="text/javascript">
10
+ var rdoc_rel_prefix = "./";
11
+ var index_rel_prefix = "./";
12
+ </script>
13
+
14
+ <script src="./js/jquery.js"></script>
15
+ <script src="./js/darkfish.js"></script>
16
+
17
+ <link href="./css/fonts.css" rel="stylesheet">
18
+ <link href="./css/rdoc.css" rel="stylesheet">
19
+
20
+
21
+
22
+
23
+ <body id="top" role="document" class="file">
24
+ <nav role="navigation">
25
+ <div id="project-navigation">
26
+ <div id="home-section" role="region" title="Quick navigation" class="nav-section">
27
+ <h2>
28
+ <a href="./index.html" rel="home">Home</a>
29
+ </h2>
30
+
31
+ <div id="table-of-contents-navigation">
32
+ <a href="./table_of_contents.html#pages">Pages</a>
33
+ <a href="./table_of_contents.html#classes">Classes</a>
34
+ <a href="./table_of_contents.html#methods">Methods</a>
35
+ </div>
36
+ </div>
37
+
38
+ <div id="search-section" role="search" class="project-section initially-hidden">
39
+ <form action="#" method="get" accept-charset="utf-8">
40
+ <div id="search-field-wrapper">
41
+ <input id="search-field" role="combobox" aria-label="Search"
42
+ aria-autocomplete="list" aria-controls="search-results"
43
+ type="text" name="search" placeholder="Search" spellcheck="false"
44
+ title="Type to search, Up and Down to navigate, Enter to load">
45
+ </div>
46
+
47
+ <ul id="search-results" aria-label="Search Results"
48
+ aria-busy="false" aria-expanded="false"
49
+ aria-atomic="false" class="initially-hidden"></ul>
50
+ </form>
51
+ </div>
52
+
53
+ </div>
54
+
55
+
56
+
57
+ <div id="project-metadata">
58
+ <div id="fileindex-section" class="nav-section">
59
+ <h3>Pages</h3>
60
+
61
+ <ul class="link-list">
62
+
63
+ <li><a href="./CHANGELOG.html">CHANGELOG</a>
64
+
65
+ <li><a href="./COPYING_md.html">COPYING</a>
66
+
67
+ <li><a href="./Gemfile.html">Gemfile</a>
68
+
69
+ <li><a href="./README_md.html">README</a>
70
+
71
+ <li><a href="./Rakefile.html">Rakefile</a>
72
+
73
+ <li><a href="./acknowledgements_md.html">acknowledgements</a>
74
+
75
+ <li><a href="./authors_md.html">authors</a>
76
+
77
+ <li><a href="./copyright_md.html">copyright</a>
78
+
79
+ <li><a href="./wwwjdic_gemspec.html">wwwjdic.gemspec</a>
80
+
81
+ </ul>
82
+ </div>
83
+
84
+ </div>
85
+ </nav>
86
+
87
+ <main role="main" aria-label="Page Rakefile">
88
+
89
+ <p># wwwjdic # Copyright © 2014, 2015, 2016, 2017, 2018, 2019 Marco Bresciani # # This file is part of wwwjdic. # # wwwjdic is free software: you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by the # Free Software Foundation, either version 3 of the License, or (at your # option) any later version. # # wwwjdic is distributed in the hope that it will be useful, but WITHOUT # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License # for more details. # # You should have received a copy of the GNU General Public License # along with wwwjdic. If not, see &lt;<a href="http://www.gnu.org/licenses">www.gnu.org/licenses</a>/&gt;.</p>
90
+
91
+ <p>require &#39;rake&#39; require &#39;rake/clean&#39; require &#39;rake/testtask&#39; require &#39;rdoc/task&#39; require &#39;rubygems/package_task&#39;</p>
92
+
93
+ <p>wwwjdic = Gem::Specification.load &#39;wwwjdic.gemspec&#39;</p>
94
+
95
+ <p>desc “Build the gem (Task &#39;rake package&#39;)” Rake::PackageTask.new wwwjdic do |package|</p>
96
+
97
+ <pre class="ruby"><span class="ruby-identifier">package</span>.<span class="ruby-identifier">name</span> = <span class="ruby-identifier">wwwjdic</span>.<span class="ruby-identifier">name</span>
98
+ <span class="ruby-identifier">package</span>.<span class="ruby-identifier">need_tar</span> = <span class="ruby-keyword">true</span>
99
+ <span class="ruby-identifier">package</span>.<span class="ruby-identifier">need_tar_bz2</span> = <span class="ruby-keyword">true</span>
100
+ <span class="ruby-identifier">package</span>.<span class="ruby-identifier">need_tar_gz</span> = <span class="ruby-keyword">true</span>
101
+ <span class="ruby-identifier">package</span>.<span class="ruby-identifier">need_zip</span> = <span class="ruby-keyword">true</span>
102
+ <span class="ruby-identifier">package</span>.<span class="ruby-identifier">package_files</span> = <span class="ruby-identifier">wwwjdic</span>.<span class="ruby-identifier">files</span>
103
+ <span class="ruby-identifier">package</span>.<span class="ruby-identifier">version</span> = <span class="ruby-identifier">wwwjdic</span>.<span class="ruby-identifier">version</span>
104
+ </pre>
105
+
106
+ <p>end</p>
107
+
108
+ <p>desc “Build the RDoc gem documentation (task &#39;rake rdoc&#39;)” Rake::RDocTask.new do |rdoc|</p>
109
+
110
+ <pre class="ruby"><span class="ruby-identifier">rdoc</span>.<span class="ruby-identifier">rdoc_files</span>.<span class="ruby-identifier">add</span> <span class="ruby-identifier">wwwjdic</span>.<span class="ruby-identifier">files</span>
111
+ <span class="ruby-identifier">rdoc</span>.<span class="ruby-identifier">title</span> = <span class="ruby-identifier">wwwjdic</span>.<span class="ruby-identifier">name</span> <span class="ruby-operator">+</span> <span class="ruby-string">&#39; &#39;</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">wwwjdic</span>.<span class="ruby-identifier">version</span>.<span class="ruby-identifier">to_s</span>
112
+ <span class="ruby-identifier">rdoc</span>.<span class="ruby-identifier">main</span> = <span class="ruby-string">&#39;README.md&#39;</span>
113
+ <span class="ruby-identifier">rdoc</span>.<span class="ruby-identifier">options</span> <span class="ruby-operator">+=</span> <span class="ruby-node">%w(-e UTF-8 --hyperlink-all --line-numbers)</span>
114
+ </pre>
115
+
116
+ <p>end</p>
117
+
118
+ <p>desc “Run the gem unit tests (task &#39;rake test&#39;)” Rake::TestTask.new do |test_task|</p>
119
+
120
+ <pre class="ruby"><span class="ruby-identifier">test_task</span>.<span class="ruby-identifier">libs</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-string">&#39;test&#39;</span>
121
+ <span class="ruby-identifier">test_task</span>.<span class="ruby-identifier">test_files</span> = <span class="ruby-constant">FileList</span>[<span class="ruby-string">&#39;test /test_*.rb&#39;</span>]
122
+ <span class="ruby-identifier">test_task</span>.<span class="ruby-identifier">verbose</span> = <span class="ruby-keyword">true</span>
123
+ <span class="ruby-identifier">test_task</span>.<span class="ruby-identifier">warning</span> = <span class="ruby-keyword">true</span>
124
+ </pre>
125
+
126
+ <p>end</p>
127
+
128
+ </main>
129
+
130
+
131
+
132
+ <footer id="validator-badges" role="contentinfo">
133
+ <p><a href="https://validator.w3.org/check/referer">Validate</a>
134
+ <p>Generated by <a href="https://ruby.github.io/rdoc/">RDoc</a> 6.1.1.
135
+ <p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
136
+ </footer>
137
+
@@ -0,0 +1,159 @@
1
+ <!DOCTYPE html>
2
+
3
+ <html>
4
+ <head>
5
+ <meta charset="UTF-8">
6
+
7
+ <title>module WWWJDic::ParsableDuckType - wwwjdic 13.0.0</title>
8
+
9
+ <script type="text/javascript">
10
+ var rdoc_rel_prefix = "../";
11
+ var index_rel_prefix = "../";
12
+ </script>
13
+
14
+ <script src="../js/jquery.js"></script>
15
+ <script src="../js/darkfish.js"></script>
16
+
17
+ <link href="../css/fonts.css" rel="stylesheet">
18
+ <link href="../css/rdoc.css" rel="stylesheet">
19
+
20
+
21
+
22
+
23
+ <body id="top" role="document" class="module">
24
+ <nav role="navigation">
25
+ <div id="project-navigation">
26
+ <div id="home-section" role="region" title="Quick navigation" class="nav-section">
27
+ <h2>
28
+ <a href="../index.html" rel="home">Home</a>
29
+ </h2>
30
+
31
+ <div id="table-of-contents-navigation">
32
+ <a href="../table_of_contents.html#pages">Pages</a>
33
+ <a href="../table_of_contents.html#classes">Classes</a>
34
+ <a href="../table_of_contents.html#methods">Methods</a>
35
+ </div>
36
+ </div>
37
+
38
+ <div id="search-section" role="search" class="project-section initially-hidden">
39
+ <form action="#" method="get" accept-charset="utf-8">
40
+ <div id="search-field-wrapper">
41
+ <input id="search-field" role="combobox" aria-label="Search"
42
+ aria-autocomplete="list" aria-controls="search-results"
43
+ type="text" name="search" placeholder="Search" spellcheck="false"
44
+ title="Type to search, Up and Down to navigate, Enter to load">
45
+ </div>
46
+
47
+ <ul id="search-results" aria-label="Search Results"
48
+ aria-busy="false" aria-expanded="false"
49
+ aria-atomic="false" class="initially-hidden"></ul>
50
+ </form>
51
+ </div>
52
+
53
+ </div>
54
+
55
+
56
+
57
+ <div id="class-metadata">
58
+
59
+
60
+
61
+
62
+ <!-- Method Quickref -->
63
+ <div id="method-list-section" class="nav-section">
64
+ <h3>Methods</h3>
65
+
66
+ <ul class="link-list" role="directory">
67
+
68
+ <li ><a href="#method-i-test_parsable_duck_type">#test_parsable_duck_type</a>
69
+
70
+ </ul>
71
+ </div>
72
+
73
+ </div>
74
+ </nav>
75
+
76
+ <main role="main" aria-labelledby="module-WWWJDic::ParsableDuckType">
77
+ <h1 id="module-WWWJDic::ParsableDuckType" class="module">
78
+ module WWWJDic::ParsableDuckType
79
+ </h1>
80
+
81
+ <section class="description">
82
+
83
+ <p>This module represents the parsable duck type element for testing purposes.</p>
84
+ <dl class="rdoc-list note-list"><dt>Author
85
+ <dd>
86
+ <p><a href="mailto:marcobresciani_1974@libero.it">Marco Bresciani</a></p>
87
+ </dd><dt>Copyright
88
+ <dd>
89
+ <p>Copyright © 2014, 2015, 2016, 2017, 2018, 2019 Marco Bresciani</p>
90
+ </dd><dt>License
91
+ <dd>
92
+ <p>GNU General Public License version 3</p>
93
+ </dd></dl>
94
+
95
+ </section>
96
+
97
+
98
+ <section id="5Buntitled-5D" class="documentation-section">
99
+
100
+
101
+
102
+
103
+
104
+
105
+
106
+
107
+
108
+ <section id="public-instance-5Buntitled-5D-method-details" class="method-section">
109
+ <header>
110
+ <h3>Public Instance Methods</h3>
111
+ </header>
112
+
113
+
114
+ <div id="method-i-test_parsable_duck_type" class="method-detail ">
115
+
116
+ <div class="method-heading">
117
+ <span class="method-name">test_parsable_duck_type</span><span
118
+ class="method-args">()</span>
119
+
120
+ <span class="method-click-advice">click to toggle source</span>
121
+
122
+ </div>
123
+
124
+
125
+ <div class="method-description">
126
+
127
+ <p>The method that tests the parsable duck type interface and its <code>parse</code> method.</p>
128
+
129
+
130
+
131
+
132
+ <div class="method-source-code" id="test_parsable_duck_type-source">
133
+ <pre> <span class="ruby-comment"># File test/wwwjdic/test_parsable_duck_type.rb</span>
134
+ <span class="line-num">33</span> <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">test_parsable_duck_type</span>
135
+ <span class="line-num">34</span> <span class="ruby-identifier">subject</span>.<span class="ruby-identifier">must_respond_to</span> <span class="ruby-value">:parse</span> <span class="ruby-keyword">unless</span> <span class="ruby-identifier">subject</span>.<span class="ruby-identifier">nil?</span>
136
+ <span class="line-num">35</span> <span class="ruby-keyword">end</span></pre>
137
+ </div>
138
+
139
+ </div>
140
+
141
+
142
+
143
+
144
+ </div>
145
+
146
+
147
+ </section>
148
+
149
+ </section>
150
+
151
+ </main>
152
+
153
+
154
+ <footer id="validator-badges" role="contentinfo">
155
+ <p><a href="https://validator.w3.org/check/referer">Validate</a>
156
+ <p>Generated by <a href="https://ruby.github.io/rdoc/">RDoc</a> 6.1.1.
157
+ <p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
158
+ </footer>
159
+
@@ -0,0 +1,233 @@
1
+ <!DOCTYPE html>
2
+
3
+ <html>
4
+ <head>
5
+ <meta charset="UTF-8">
6
+
7
+ <title>class WWWJDic::Parser - wwwjdic 13.0.0</title>
8
+
9
+ <script type="text/javascript">
10
+ var rdoc_rel_prefix = "../";
11
+ var index_rel_prefix = "../";
12
+ </script>
13
+
14
+ <script src="../js/jquery.js"></script>
15
+ <script src="../js/darkfish.js"></script>
16
+
17
+ <link href="../css/fonts.css" rel="stylesheet">
18
+ <link href="../css/rdoc.css" rel="stylesheet">
19
+
20
+
21
+
22
+
23
+ <body id="top" role="document" class="class">
24
+ <nav role="navigation">
25
+ <div id="project-navigation">
26
+ <div id="home-section" role="region" title="Quick navigation" class="nav-section">
27
+ <h2>
28
+ <a href="../index.html" rel="home">Home</a>
29
+ </h2>
30
+
31
+ <div id="table-of-contents-navigation">
32
+ <a href="../table_of_contents.html#pages">Pages</a>
33
+ <a href="../table_of_contents.html#classes">Classes</a>
34
+ <a href="../table_of_contents.html#methods">Methods</a>
35
+ </div>
36
+ </div>
37
+
38
+ <div id="search-section" role="search" class="project-section initially-hidden">
39
+ <form action="#" method="get" accept-charset="utf-8">
40
+ <div id="search-field-wrapper">
41
+ <input id="search-field" role="combobox" aria-label="Search"
42
+ aria-autocomplete="list" aria-controls="search-results"
43
+ type="text" name="search" placeholder="Search" spellcheck="false"
44
+ title="Type to search, Up and Down to navigate, Enter to load">
45
+ </div>
46
+
47
+ <ul id="search-results" aria-label="Search Results"
48
+ aria-busy="false" aria-expanded="false"
49
+ aria-atomic="false" class="initially-hidden"></ul>
50
+ </form>
51
+ </div>
52
+
53
+ </div>
54
+
55
+
56
+
57
+ <div id="class-metadata">
58
+
59
+ <div id="parent-class-section" class="nav-section">
60
+ <h3>Parent</h3>
61
+
62
+
63
+ <p class="link"><a href="../Object.html">Object</a>
64
+
65
+ </div>
66
+
67
+
68
+
69
+ <!-- Method Quickref -->
70
+ <div id="method-list-section" class="nav-section">
71
+ <h3>Methods</h3>
72
+
73
+ <ul class="link-list" role="directory">
74
+
75
+ <li ><a href="#method-c-new">::new</a>
76
+
77
+ <li ><a href="#method-i-parse">#parse</a>
78
+
79
+ </ul>
80
+ </div>
81
+
82
+ </div>
83
+ </nav>
84
+
85
+ <main role="main" aria-labelledby="class-WWWJDic::Parser">
86
+ <h1 id="class-WWWJDic::Parser" class="class">
87
+ class WWWJDic::Parser
88
+ </h1>
89
+
90
+ <section class="description">
91
+
92
+ <p>This class is a simple utility that is used to <a href="Parser.html#method-i-parse"><code>parse</code></a> and filter parameters for wwwjdic.</p>
93
+ <dl class="rdoc-list note-list"><dt>Author
94
+ <dd>
95
+ <p><a href="mailto:marcobresciani_1974@libero.it">Marco Bresciani</a></p>
96
+ </dd><dt>Copyright
97
+ <dd>
98
+ <p>Copyright © 2014, 2015, 2016, 2017, 2018, 2019 Marco Bresciani</p>
99
+ </dd><dt>License
100
+ <dd>
101
+ <p>GNU General Public License version 3</p>
102
+ </dd></dl>
103
+
104
+ </section>
105
+
106
+
107
+ <section id="5Buntitled-5D" class="documentation-section">
108
+
109
+
110
+
111
+
112
+
113
+
114
+
115
+ <section class="attribute-method-details" class="method-section">
116
+ <header>
117
+ <h3>Attributes</h3>
118
+ </header>
119
+
120
+
121
+ <div id="attribute-i-parsers" class="method-detail">
122
+ <div class="method-heading attribute-method-heading">
123
+ <span class="method-name">parsers</span><span
124
+ class="attribute-access-type">[R]</span>
125
+ </div>
126
+
127
+ <div class="method-description">
128
+
129
+
130
+
131
+ </div>
132
+ </div>
133
+
134
+ </section>
135
+
136
+
137
+
138
+ <section id="public-class-5Buntitled-5D-method-details" class="method-section">
139
+ <header>
140
+ <h3>Public Class Methods</h3>
141
+ </header>
142
+
143
+
144
+ <div id="method-c-new" class="method-detail ">
145
+
146
+ <div class="method-heading">
147
+ <span class="method-name">new</span><span
148
+ class="method-args">(args = {})</span>
149
+
150
+ <span class="method-click-advice">click to toggle source</span>
151
+
152
+ </div>
153
+
154
+
155
+ <div class="method-description">
156
+
157
+
158
+
159
+
160
+
161
+
162
+ <div class="method-source-code" id="new-source">
163
+ <pre> <span class="ruby-comment"># File lib/wwwjdic/parser.rb</span>
164
+ <span class="line-num">34</span> <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">initialize</span>(<span class="ruby-identifier">args</span> = {})
165
+ <span class="line-num">35</span> <span class="ruby-ivar">@parsers</span> = <span class="ruby-constant">Hash</span>.<span class="ruby-identifier">new</span>
166
+ <span class="line-num">36</span> <span class="ruby-constant">ALL_PARAMS</span>.<span class="ruby-identifier">each</span> {<span class="ruby-operator">|</span><span class="ruby-identifier">param</span><span class="ruby-operator">|</span> <span class="ruby-identifier">parsers</span>[<span class="ruby-identifier">param</span>] = <span class="ruby-identifier">args</span>[<span class="ruby-identifier">param</span>]} <span class="ruby-keyword">unless</span> <span class="ruby-identifier">args</span>.<span class="ruby-identifier">nil?</span>
167
+ <span class="line-num">37</span> <span class="ruby-keyword">end</span></pre>
168
+ </div>
169
+
170
+ </div>
171
+
172
+
173
+
174
+
175
+ </div>
176
+
177
+
178
+ </section>
179
+
180
+ <section id="public-instance-5Buntitled-5D-method-details" class="method-section">
181
+ <header>
182
+ <h3>Public Instance Methods</h3>
183
+ </header>
184
+
185
+
186
+ <div id="method-i-parse" class="method-detail ">
187
+
188
+ <div class="method-heading">
189
+ <span class="method-name">parse</span><span
190
+ class="method-args">(method = nil, value = nil)</span>
191
+
192
+ <span class="method-click-advice">click to toggle source</span>
193
+
194
+ </div>
195
+
196
+
197
+ <div class="method-description">
198
+
199
+ <p>Provides the duck type for a generic parsing object.</p>
200
+
201
+
202
+
203
+
204
+ <div class="method-source-code" id="parse-source">
205
+ <pre> <span class="ruby-comment"># File lib/wwwjdic/parser.rb</span>
206
+ <span class="line-num">40</span> <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">parse</span>(<span class="ruby-identifier">method</span> = <span class="ruby-keyword">nil</span>, <span class="ruby-identifier">value</span> = <span class="ruby-keyword">nil</span>)
207
+ <span class="line-num">41</span> <span class="ruby-identifier">a_parser</span> = <span class="ruby-keyword">nil</span>
208
+ <span class="line-num">42</span> <span class="ruby-identifier">a_parser</span> = <span class="ruby-identifier">parsers</span>[<span class="ruby-identifier">method</span>.<span class="ruby-identifier">to_sym</span>] <span class="ruby-keyword">unless</span> <span class="ruby-identifier">method</span>.<span class="ruby-identifier">nil?</span> <span class="ruby-keyword">or</span> <span class="ruby-identifier">parsers</span>.<span class="ruby-identifier">nil?</span>
209
+ <span class="line-num">43</span> <span class="ruby-identifier">a_parser</span>.<span class="ruby-identifier">parse</span> <span class="ruby-identifier">value</span> <span class="ruby-keyword">unless</span> <span class="ruby-identifier">a_parser</span>.<span class="ruby-identifier">nil?</span>
210
+ <span class="line-num">44</span> <span class="ruby-keyword">end</span></pre>
211
+ </div>
212
+
213
+ </div>
214
+
215
+
216
+
217
+
218
+ </div>
219
+
220
+
221
+ </section>
222
+
223
+ </section>
224
+
225
+ </main>
226
+
227
+
228
+ <footer id="validator-badges" role="contentinfo">
229
+ <p><a href="https://validator.w3.org/check/referer">Validate</a>
230
+ <p>Generated by <a href="https://ruby.github.io/rdoc/">RDoc</a> 6.1.1.
231
+ <p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
232
+ </footer>
233
+