method
check_typecode
check_typecode(v)
private
Hide source
# File lib/uri/ftp.rb, line 103 def check_typecode(v) if TYPECODE.include?(v) return true else raise InvalidComponentError, "bad typecode(expected #{TYPECODE.join(', ')}): #{v}" end end