method
check_scheme

check_scheme(v)
private
Hide source
# File lib/uri/generic.rb, line 240 def check_scheme(v) if v && parser.regexp[:SCHEME] !~ v raise InvalidComponentError, "bad component(expected scheme component): #{v}" end return true end