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