mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
separate downloading of Unicode property files and auxiliary files
Separate downloading of Unicode property files in ucd and in ucd/auxiliary.
This is needed because we need information from separate index.html files
to discover the exact file names of property files during a beta period.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_6@67562 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
18 lines
381 B
Ruby
18 lines
381 B
Ruby
# frozen_string_literal: true
|
|
|
|
# This provides String#delete_suffix? for Ruby 2.4.
|
|
unless String.method_defined?(:delete_suffix)
|
|
class CSV
|
|
module DeleteSuffix
|
|
refine String do
|
|
def delete_suffix(suffix)
|
|
if end_with?(suffix)
|
|
self[0..(-(suffix.size + 1))]
|
|
else
|
|
self
|
|
end
|
|
end
|
|
end
|
|
end
|
|
end
|
|
end
|