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.
Files changed (97) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG +60 -1
  3. data/Gemfile +7 -1
  4. data/README.md +500 -225
  5. data/Rakefile +10 -3
  6. data/copyright.md +17 -29
  7. data/examples/basics.rb +53 -45
  8. data/examples/translate.rb +159 -86
  9. data/examples/uri.rb +46 -78
  10. data/html/CHANGELOG.html +90 -35
  11. data/html/COPYING_md.html +26 -38
  12. data/html/Gemfile.html +25 -35
  13. data/html/Object.html +838 -74
  14. data/html/README_md.html +322 -175
  15. data/html/Rakefile.html +28 -38
  16. data/html/WWWJDic.html +63 -104
  17. data/html/WWWJDic/ParsableDuckType.html +38 -58
  18. data/html/WWWJDic/Parser.html +52 -92
  19. data/html/WWWJDic/Parsers.html +29 -35
  20. data/html/WWWJDic/Parsers/Dict.html +50 -76
  21. data/html/WWWJDic/Parsers/Display.html +45 -69
  22. data/html/WWWJDic/Parsers/Key.html +46 -70
  23. data/html/WWWJDic/Parsers/Search.html +41 -61
  24. data/html/WWWJDic/Parsers/Server.html +45 -69
  25. data/html/WWWJDic/Splitter.html +81 -175
  26. data/html/WWWJDic/Utils.html +30 -36
  27. data/html/WWWJDic/Utils/Downloader.html +41 -41
  28. data/html/WWWJDic/Utils/Downloader/Downloader.html +65 -92
  29. data/html/WWWJDic/Utils/Raisers.html +46 -98
  30. data/html/WWWJDic/WWWJDic.html +166 -348
  31. data/html/copyright_md.html +219 -239
  32. data/html/created.rid +33 -58
  33. data/html/css/rdoc.css +638 -590
  34. data/html/index.html +313 -182
  35. data/html/js/darkfish.js +84 -161
  36. data/html/js/navigation.js +4 -40
  37. data/html/js/navigation.js.gz +0 -0
  38. data/html/js/search.js +109 -109
  39. data/html/js/search_index.js +1 -1
  40. data/html/js/search_index.js.gz +0 -0
  41. data/html/js/searcher.js +228 -229
  42. data/html/js/searcher.js.gz +0 -0
  43. data/html/table_of_contents.html +161 -200
  44. data/lib/wwwjdic.rb +14 -15
  45. data/lib/wwwjdic/application.rb +68 -36
  46. data/lib/wwwjdic/constants.rb +56 -12
  47. data/lib/wwwjdic/locales/de.yml +9 -4
  48. data/lib/wwwjdic/locales/en.yml +9 -4
  49. data/lib/wwwjdic/locales/es.yml +9 -4
  50. data/lib/wwwjdic/locales/fr.yml +9 -4
  51. data/lib/wwwjdic/locales/hu.yml +9 -4
  52. data/lib/wwwjdic/locales/it.yml +9 -4
  53. data/lib/wwwjdic/locales/ja.yml +11 -5
  54. data/lib/wwwjdic/locales/nl.yml +9 -4
  55. data/lib/wwwjdic/locales/ru.yml +9 -4
  56. data/lib/wwwjdic/locales/sl.yml +9 -4
  57. data/lib/wwwjdic/locales/sv.yml +9 -4
  58. data/lib/wwwjdic/parser.rb +13 -8
  59. data/lib/wwwjdic/parsers/dict.rb +11 -8
  60. data/lib/wwwjdic/parsers/display.rb +8 -3
  61. data/lib/wwwjdic/parsers/key.rb +9 -3
  62. data/lib/wwwjdic/parsers/search.rb +10 -3
  63. data/lib/wwwjdic/parsers/server.rb +8 -3
  64. data/lib/wwwjdic/utils/downloader.rb +37 -34
  65. data/lib/wwwjdic/utils/raisers.rb +12 -15
  66. data/lib/wwwjdic/utils/splitter.rb +32 -18
  67. data/lib/wwwjdic/version.rb +22 -8
  68. data/test/test_helper.rb +10 -1
  69. data/test/test_wwwjdic.rb +10 -4
  70. data/test/wwwjdic/locales/de.yml +9 -1
  71. data/test/wwwjdic/locales/en.yml +9 -1
  72. data/test/wwwjdic/locales/es.yml +9 -1
  73. data/test/wwwjdic/locales/fr.yml +9 -1
  74. data/test/wwwjdic/locales/hu.yml +9 -1
  75. data/test/wwwjdic/locales/it.yml +10 -1
  76. data/test/wwwjdic/locales/ja.yml +11 -2
  77. data/test/wwwjdic/locales/nl.yml +9 -1
  78. data/test/wwwjdic/locales/ru.yml +9 -1
  79. data/test/wwwjdic/locales/sl.yml +9 -1
  80. data/test/wwwjdic/locales/sv.yml +9 -1
  81. data/test/wwwjdic/locales/test_locales.rb +41 -24
  82. data/test/wwwjdic/parsers/test_dict.rb +65 -37
  83. data/test/wwwjdic/parsers/test_display.rb +11 -5
  84. data/test/wwwjdic/parsers/test_key.rb +10 -4
  85. data/test/wwwjdic/parsers/test_server.rb +11 -5
  86. data/test/wwwjdic/test_application.rb +199 -149
  87. data/test/wwwjdic/test_parsable_duck_type.rb +9 -5
  88. data/test/wwwjdic/utils/test_downloader.rb +7 -1
  89. data/test/wwwjdic/utils/test_raisers.rb +46 -29
  90. data/wwwjdic.gemspec +44 -26
  91. metadata +55 -43
  92. data/acknowledgements.md +0 -55
  93. data/authors.md +0 -67
  94. data/html/acknowledgements_md.html +0 -149
  95. data/html/authors_md.html +0 -181
  96. data/html/js/jquery.js +0 -4
  97. data/html/wwwjdic_gemspec.html +0 -161
@@ -4,26 +4,27 @@
4
4
  <head>
5
5
  <meta charset="UTF-8">
6
6
 
7
- <title>module WWWJDic::Utils - wwwjdic 13.0.1</title>
7
+ <title>module WWWJDic::Utils - 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/jquery.js"></script>
15
- <script src="../js/darkfish.js"></script>
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="module">
24
+ <body class="module" 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" class="nav-section">
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,48 +36,48 @@
35
36
  </div>
36
37
  </div>
37
38
 
38
- <div id="search-section" role="search" class="project-section initially-hidden">
39
- <form action="#" method="get" accept-charset="utf-8">
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 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">
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 id="search-results" aria-label="Search Results"
48
- aria-busy="false" aria-expanded="false"
49
- aria-atomic="false" class="initially-hidden"></ul>
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
-
60
-
61
-
62
-
59
+
60
+
61
+
62
+
63
+
63
64
  </div>
64
65
  </nav>
65
66
 
66
- <main role="main" aria-labelledby="module-WWWJDic::Utils">
67
- <h1 id="module-WWWJDic::Utils" class="module">
67
+ <main aria-labelledby="module-WWWJDic::Utils" role="main">
68
+ <h1 class="module" id="module-WWWJDic::Utils">
68
69
  module WWWJDic::Utils
69
70
  </h1>
70
71
 
71
72
  <section class="description">
72
-
73
+
73
74
  <p>This module is a simple collection of useful things and methods that I prefer to keep as DRYer as possible. Just include it and use the methods…</p>
74
75
  <dl class="rdoc-list note-list"><dt>Author
75
76
  <dd>
76
77
  <p><a href="mailto:marcobresciani_1974@libero.it">Marco Bresciani</a></p>
77
78
  </dd><dt>Copyright
78
79
  <dd>
79
- <p>Copyright © 2014, 2015, 2016, 2017, 2018, 2019 Marco Bresciani</p>
80
+ <p 2014-2021 Marco Bresciani</p>
80
81
  </dd><dt>License
81
82
  <dd>
82
83
  <p>GNU General Public License version 3</p>
@@ -84,25 +85,18 @@
84
85
 
85
86
  </section>
86
87
 
87
-
88
- <section id="5Buntitled-5D" class="documentation-section">
89
-
88
+ <section class="documentation-section" id="5Buntitled-5D">
90
89
 
91
-
92
90
 
93
-
94
91
 
95
-
96
92
 
97
-
98
- </section>
99
93
 
94
+ </section>
100
95
  </main>
101
96
 
102
97
 
103
98
  <footer id="validator-badges" role="contentinfo">
104
99
  <p><a href="https://validator.w3.org/check/referer">Validate</a>
105
- <p>Generated by <a href="https://ruby.github.io/rdoc/">RDoc</a> 6.1.1.
100
+ <p>Generated by <a href="https://ruby.github.io/rdoc/">RDoc</a> 6.3.2.
106
101
  <p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
107
102
  </footer>
108
-
@@ -4,26 +4,27 @@
4
4
  <head>
5
5
  <meta charset="UTF-8">
6
6
 
7
- <title>module WWWJDic::Utils::Downloader - wwwjdic 13.0.1</title>
7
+ <title>module WWWJDic::Utils::Downloader - 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/jquery.js"></script>
15
- <script src="../../js/darkfish.js"></script>
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="module">
24
+ <body class="module" 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" class="nav-section">
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,74 +36,73 @@
35
36
  </div>
36
37
  </div>
37
38
 
38
- <div id="search-section" role="search" class="project-section initially-hidden">
39
- <form action="#" method="get" accept-charset="utf-8">
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 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">
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 id="search-results" aria-label="Search Results"
48
- aria-busy="false" aria-expanded="false"
49
- aria-atomic="false" class="initially-hidden"></ul>
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
-
60
-
61
-
62
-
59
+
60
+
61
+
62
+
63
+
63
64
  </div>
64
65
  </nav>
65
66
 
66
- <main role="main" aria-labelledby="module-WWWJDic::Utils::Downloader">
67
- <h1 id="module-WWWJDic::Utils::Downloader" class="module">
67
+ <main aria-labelledby="module-WWWJDic::Utils::Downloader" role="main">
68
+ <h1 class="module" id="module-WWWJDic::Utils::Downloader">
68
69
  module WWWJDic::Utils::Downloader
69
70
  </h1>
70
71
 
71
72
  <section class="description">
72
-
73
- <p>This module is a simple wrapper container for Peter R. Marreck&#39;s gist.</p>
73
+
74
+ <p>This module is a simple wrapper container for Jon Maken gist.</p>
74
75
  <dl class="rdoc-list note-list"><dt>Author
75
76
  <dd>
76
- <p><a href="mailto:jon.forums@gmail.com">Jon Maken</a></p>
77
- </dd><dt>License
77
+ <p><a href="mailto:marcobresciani_1974@libero.it">Marco Bresciani</a></p>
78
+ </dd></dl>
79
+
80
+ <p>rubocop:disable Style/AsciiComments</p>
81
+ <dl class="rdoc-list note-list"><dt>Copyright
78
82
  <dd>
79
- <p>3-clause BSD</p>
80
- </dd><dt>Revision
83
+ <p>© 2014-2021 Marco Bresciani</p>
84
+ </dd></dl>
85
+
86
+ <p>rubocop:enable Style/AsciiComments</p>
87
+ <dl class="rdoc-list note-list"><dt>License
81
88
  <dd>
82
- <p>2012-03-25 23:01:19 -0600</p>
89
+ <p>GNU General Public License version 3</p>
83
90
  </dd></dl>
84
91
 
85
92
  </section>
86
93
 
87
-
88
- <section id="5Buntitled-5D" class="documentation-section">
89
-
94
+ <section class="documentation-section" id="5Buntitled-5D">
90
95
 
91
-
92
96
 
93
-
94
97
 
95
-
96
98
 
97
-
98
- </section>
99
99
 
100
+ </section>
100
101
  </main>
101
102
 
102
103
 
103
104
  <footer id="validator-badges" role="contentinfo">
104
105
  <p><a href="https://validator.w3.org/check/referer">Validate</a>
105
- <p>Generated by <a href="https://ruby.github.io/rdoc/">RDoc</a> 6.1.1.
106
+ <p>Generated by <a href="https://ruby.github.io/rdoc/">RDoc</a> 6.3.2.
106
107
  <p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
107
108
  </footer>
108
-
@@ -4,26 +4,27 @@
4
4
  <head>
5
5
  <meta charset="UTF-8">
6
6
 
7
- <title>class WWWJDic::Utils::Downloader::Downloader - wwwjdic 13.0.1</title>
7
+ <title>class WWWJDic::Utils::Downloader::Downloader - 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/jquery.js"></script>
15
- <script src="../../../js/darkfish.js"></script>
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" class="nav-section">
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,193 +36,165 @@
35
36
  </div>
36
37
  </div>
37
38
 
38
- <div id="search-section" role="search" class="project-section initially-hidden">
39
- <form action="#" method="get" accept-charset="utf-8">
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 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">
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 id="search-results" aria-label="Search Results"
48
- aria-busy="false" aria-expanded="false"
49
- aria-atomic="false" class="initially-hidden"></ul>
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
- <div id="parent-class-section" class="nav-section">
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
- <!-- Method Quickref -->
70
- <div id="method-list-section" class="nav-section">
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-c-download_file">::download_file</a>
76
-
77
76
  </ul>
78
77
  </div>
79
78
 
80
79
  </div>
81
80
  </nav>
82
81
 
83
- <main role="main" aria-labelledby="class-WWWJDic::Utils::Downloader::Downloader">
84
- <h1 id="class-WWWJDic::Utils::Downloader::Downloader" class="class">
82
+ <main aria-labelledby="class-WWWJDic::Utils::Downloader::Downloader" role="main">
83
+ <h1 class="class" id="class-WWWJDic::Utils::Downloader::Downloader">
85
84
  class WWWJDic::Utils::Downloader::Downloader
86
85
  </h1>
87
86
 
88
87
  <section class="description">
89
-
90
- <p>!/usr/bin/env ruby</p>
91
-
92
- <pre>An HTTP/HTTPS/FTP file downloader library/CLI based upon
93
- MiniPortile&#39;s HTTP implementation.
94
88
 
95
- Author:: Jon Maken
96
- License:: 3-clause BSD
97
- Revision:: 2012-03-25 23:01:19 -0600</pre>
89
+ <p>rubocop:disable Style/AsciiComments</p>
90
+ <dl class="rdoc-list note-list"><dt>Copyright
91
+ <dd>
92
+ <p>© 2012 Jon Maken</p>
93
+ </dd></dl>
94
+
95
+ <p>rubocop:enable Style/AsciiComments see <a href="https://gist.github.com/jonforums/2202048">gist.github.com/jonforums/2202048</a></p>
96
+
97
+ <p>An HTTP/HTTPS/FTP file downloader library/CLI based upon MiniPortile&#39;s HTTP implementation.</p>
98
+ <dl class="rdoc-list note-list"><dt>Author
99
+ <dd>
100
+ <p>Jon Maken</p>
101
+ </dd><dt>License
102
+ <dd>
103
+ <p>3-clause BSD</p>
104
+ </dd><dt>Revision
105
+ <dd>
106
+ <p>2012-03-25 23:01:19 -0600</p>
107
+ </dd></dl>
98
108
 
99
109
  </section>
100
110
 
101
-
102
- <section id="5Buntitled-5D" class="documentation-section">
103
-
111
+ <section class="documentation-section" id="5Buntitled-5D">
104
112
 
105
-
106
113
 
107
-
108
114
  <section class="constants-list">
109
115
  <header>
110
116
  <h3>Constants</h3>
111
117
  </header>
112
118
  <dl>
113
-
114
119
  <dt id="VERSION">VERSION
115
-
116
120
  <dd>
117
-
118
-
119
121
  </dl>
120
122
  </section>
121
-
122
123
 
123
-
124
124
  <section class="attribute-method-details" class="method-section">
125
125
  <header>
126
126
  <h3>Attributes</h3>
127
127
  </header>
128
128
 
129
-
130
- <div id="attribute-c-ftp_data_chunk_size" class="method-detail">
129
+ <div class="method-detail" id="attribute-c-ftp_data_chunk_size">
131
130
  <div class="method-heading attribute-method-heading">
132
131
  <span class="method-name">ftp_data_chunk_size</span><span
133
132
  class="attribute-access-type">[RW]</span>
134
133
  </div>
135
134
 
136
135
  <div class="method-description">
137
-
138
-
139
-
136
+
140
137
  </div>
141
138
  </div>
142
-
143
- <div id="attribute-c-logger" class="method-detail">
139
+ <div class="method-detail" id="attribute-c-logger">
144
140
  <div class="method-heading attribute-method-heading">
145
141
  <span class="method-name">logger</span><span
146
142
  class="attribute-access-type">[RW]</span>
147
143
  </div>
148
144
 
149
145
  <div class="method-description">
150
-
151
-
152
-
146
+
153
147
  </div>
154
148
  </div>
155
-
156
- <div id="attribute-c-max_ca_verify_depth" class="method-detail">
149
+ <div class="method-detail" id="attribute-c-max_ca_verify_depth">
157
150
  <div class="method-heading attribute-method-heading">
158
151
  <span class="method-name">max_ca_verify_depth</span><span
159
152
  class="attribute-access-type">[RW]</span>
160
153
  </div>
161
154
 
162
155
  <div class="method-description">
163
-
164
-
165
-
156
+
166
157
  </div>
167
158
  </div>
168
-
169
159
  </section>
170
-
171
160
 
172
-
173
- <section id="public-class-5Buntitled-5D-method-details" class="method-section">
161
+
162
+ <section class="method-section" id="public-class-5Buntitled-5D-method-details">
174
163
  <header>
175
164
  <h3>Public Class Methods</h3>
176
165
  </header>
177
166
 
178
-
179
- <div id="method-c-download_file" class="method-detail ">
180
-
167
+ <div class="method-detail " id="method-c-download_file">
181
168
  <div class="method-heading">
182
169
  <span class="method-name">download_file</span><span
183
170
  class="method-args">(url, full_path, count = 3)</span>
184
-
185
171
  <span class="method-click-advice">click to toggle source</span>
186
-
187
172
  </div>
188
-
189
173
 
190
174
  <div class="method-description">
191
-
192
-
193
-
194
-
195
175
 
196
-
176
+
197
177
  <div class="method-source-code" id="download_file-source">
198
178
  <pre> <span class="ruby-comment"># File lib/wwwjdic/utils/downloader.rb</span>
199
- <span class="line-num">59</span> <span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier ruby-title">download_file</span>(<span class="ruby-identifier">url</span>, <span class="ruby-identifier">full_path</span>, <span class="ruby-identifier">count</span> = <span class="ruby-value">3</span>)
200
- <span class="line-num">60</span> <span class="ruby-identifier">raise</span> <span class="ruby-constant">RuntimeError</span>, <span class="ruby-constant">I18n</span>.<span class="ruby-identifier">t</span>(<span class="ruby-string">&#39;error.nil&#39;</span>) <span class="ruby-keyword">if</span> <span class="ruby-identifier">url</span>.<span class="ruby-identifier">nil?</span>
201
- <span class="line-num">61</span> <span class="ruby-comment"># return if File.exist?(full_path)</span>
202
- <span class="line-num">62</span>
203
- <span class="line-num">63</span> <span class="ruby-identifier">http_download</span>(<span class="ruby-identifier">url</span>, <span class="ruby-identifier">full_path</span>, <span class="ruby-identifier">count</span>)
204
- <span class="line-num">64</span> <span class="ruby-keyword">end</span></pre>
179
+ <span class="line-num">67</span> <span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier ruby-title">download_file</span>(<span class="ruby-identifier">url</span>, <span class="ruby-identifier">full_path</span>, <span class="ruby-identifier">count</span> = <span class="ruby-value">3</span>)
180
+ <span class="line-num">68</span> <span class="ruby-identifier">raise</span> <span class="ruby-constant">I18n</span>.<span class="ruby-identifier">t</span>(<span class="ruby-string">&#39;error.nil&#39;</span>) <span class="ruby-keyword">if</span> <span class="ruby-identifier">url</span>.<span class="ruby-identifier">nil?</span>
181
+ <span class="line-num">69</span>
182
+ <span class="line-num">70</span> <span class="ruby-identifier">http_download</span>(<span class="ruby-identifier">url</span>, <span class="ruby-identifier">full_path</span>, <span class="ruby-identifier">count</span>)
183
+ <span class="line-num">71</span> <span class="ruby-keyword">end</span></pre>
205
184
  </div>
206
-
207
185
  </div>
208
186
 
209
-
210
187
 
211
-
212
188
  </div>
213
189
 
214
-
215
190
  </section>
216
-
217
- </section>
218
191
 
192
+ </section>
219
193
  </main>
220
194
 
221
195
 
222
196
  <footer id="validator-badges" role="contentinfo">
223
197
  <p><a href="https://validator.w3.org/check/referer">Validate</a>
224
- <p>Generated by <a href="https://ruby.github.io/rdoc/">RDoc</a> 6.1.1.
198
+ <p>Generated by <a href="https://ruby.github.io/rdoc/">RDoc</a> 6.3.2.
225
199
  <p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
226
200
  </footer>
227
-