Maintenance Ruby 3.4 gets fixes, but no new features. Switch to Ruby 4.0 →
instance method
URI::FTP#check_typecode
check_typecode(v)
lib/uri/ftp.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.4.1/lib/uri/ftp.rb, line 166
def check_typecode(v)
if TYPECODE.include?(v)
return true
else
raise InvalidComponentError,
"bad typecode(expected #{TYPECODE.join(', ')}): #{v}"
end
end
Validates typecode v, returns true or false.