summaryrefslogtreecommitdiff
path: root/tool/downloader.rb
diff options
context:
space:
mode:
authorduerst <duerst@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-10-06 01:15:23 +0000
committerduerst <duerst@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-10-06 01:15:23 +0000
commit0fb67d59b2279540d99333ef1ef601e826fdf5d6 (patch)
treef1d2ea3728948e6a607386dc6fb707cfbae1775a /tool/downloader.rb
parent550406c0167594f38ed9d061137fb59e38f714b6 (diff)
tool/downloader.rb: Adjust example in documentation for Downloader.download.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47807 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'tool/downloader.rb')
-rw-r--r--tool/downloader.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/tool/downloader.rb b/tool/downloader.rb
index 567d5ce..71579c5 100644
--- a/tool/downloader.rb
+++ b/tool/downloader.rb
@@ -50,7 +50,8 @@ class Downloader
# modified time.
#
# Example usage:
- # download :unicode, 'UnicodeData.txt', 'enc/unicode/data'
+ # download 'http://www.unicode.org/Public/UCD/latest/ucd/UnicodeData.txt',
+ # 'UnicodeData.txt', 'enc/unicode/data'
def self.download(url, name, dir = nil, ims = true)
file = dir ? File.join(dir, name) : name
return true if ims.nil? and File.exist?(file)