instance method
Gem::Specification#sanitize_string
sanitize_string(string)
lib/rubygems/specification.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.0.0/lib/rubygems/specification.rb, line 1449
def sanitize_string(string)
return string unless string
# HACK: the #to_s is in here because RSpec has an Array of Arrays of
# Strings for authors. Need a way to disallow bad values on gemspec
# generation. (Probably won't happen.)
string.to_s
end
Sanitize a single string.
See also
#sanitize
#satisfies_requirement?
#same_attributes?
#sort_obj
also in
4.1 · 3.4 · 3.3 · 3.2 · 3.1 · 3.0